Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
libnice
libnice
Commits
322e89ad
Commit
322e89ad
authored
Sep 13, 2012
by
Olivier Crête
👻
Browse files
nicesrc: Use gst_buffer_fill
parent
ede3ec82
Changes
1
Hide whitespace changes
Inline
Side-by-side
gst/gstnicesrc.c
View file @
322e89ad
...
...
@@ -191,14 +191,11 @@ gst_nice_src_read_callback (NiceAgent *agent,
GstBaseSrc
*
basesrc
=
GST_BASE_SRC
(
data
);
GstNiceSrc
*
nicesrc
=
GST_NICE_SRC
(
basesrc
);
GstBuffer
*
buffer
=
NULL
;
GstMapInfo
info
;
GST_LOG_OBJECT
(
agent
,
"Got buffer, getting out of the main loop"
);
buffer
=
gst_buffer_new_allocate
(
NULL
,
len
,
NULL
);
gst_buffer_map
(
buffer
,
&
info
,
GST_MAP_WRITE
);
memcpy
(
info
.
data
,
buf
,
len
);
gst_buffer_unmap
(
buffer
,
&
info
);
gst_buffer_fill
(
buffer
,
0
,
buf
,
len
);
g_queue_push_tail
(
nicesrc
->
outbufs
,
buffer
);
g_main_loop_quit
(
nicesrc
->
mainloop
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment