mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-26 00:58:12 +00:00
gstpesfilter: Directly use gst_adapter_take_buffer().
This commit is contained in:
parent
410d8f8910
commit
023af351fb
1 changed files with 1 additions and 7 deletions
|
@ -565,14 +565,8 @@ gst_pes_filter_process (GstPESFilter * filter)
|
||||||
ret = GST_FLOW_OK;
|
ret = GST_FLOW_OK;
|
||||||
} else {
|
} else {
|
||||||
GstBuffer *out;
|
GstBuffer *out;
|
||||||
guint8 *data;
|
|
||||||
|
|
||||||
data = gst_adapter_take (filter->adapter, avail);
|
out = gst_adapter_take_buffer (filter->adapter, avail);
|
||||||
|
|
||||||
out = gst_buffer_new ();
|
|
||||||
GST_BUFFER_DATA (out) = data;
|
|
||||||
GST_BUFFER_SIZE (out) = avail;
|
|
||||||
GST_BUFFER_MALLOCDATA (out) = data;
|
|
||||||
|
|
||||||
ret = gst_pes_filter_data_push (filter, filter->first, out);
|
ret = gst_pes_filter_data_push (filter, filter->first, out);
|
||||||
filter->first = FALSE;
|
filter->first = FALSE;
|
||||||
|
|
Loading…
Reference in a new issue