mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-28 03:00:35 +00:00
adapter: use buffer_wrap
This commit is contained in:
parent
113b9dc535
commit
d89719a4b3
1 changed files with 1 additions and 3 deletions
|
@ -768,9 +768,7 @@ gst_adapter_take_buffer (GstAdapter * adapter, gsize nbytes)
|
|||
|
||||
data = gst_adapter_take_internal (adapter, nbytes);
|
||||
|
||||
buffer = gst_buffer_new ();
|
||||
gst_buffer_append_memory (buffer,
|
||||
gst_memory_new_wrapped (0, data, nbytes, 0, nbytes, data, g_free));
|
||||
buffer = gst_buffer_new_wrapped (data, nbytes);
|
||||
|
||||
done:
|
||||
gst_adapter_flush_unchecked (adapter, nbytes);
|
||||
|
|
Loading…
Reference in a new issue