diff options
author | Edward Hervey <bilboed@bilboed.com> | 2009-05-11 19:30:34 +0200 |
---|---|---|
committer | Edward Hervey <bilboed@bilboed.com> | 2009-05-25 18:32:26 +0200 |
commit | 023af351fba4b22db782b39f4aa8ae75b70cc10f (patch) | |
tree | 8d20f91aa9bbede34cf6a124b4ce24cbcc4f2ffb /gst | |
parent | 410d8f891035656606382c423e57ae289c17a9be (diff) | |
download | gst-plugins-bad-023af351fba4b22db782b39f4aa8ae75b70cc10f.tar.gz gst-plugins-bad-023af351fba4b22db782b39f4aa8ae75b70cc10f.tar.bz2 gst-plugins-bad-023af351fba4b22db782b39f4aa8ae75b70cc10f.zip |
gstpesfilter: Directly use gst_adapter_take_buffer().
Diffstat (limited to 'gst')
-rw-r--r-- | gst/mpegdemux/gstpesfilter.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/gst/mpegdemux/gstpesfilter.c b/gst/mpegdemux/gstpesfilter.c index 4285c940..b520c766 100644 --- a/gst/mpegdemux/gstpesfilter.c +++ b/gst/mpegdemux/gstpesfilter.c @@ -565,14 +565,8 @@ gst_pes_filter_process (GstPESFilter * filter) ret = GST_FLOW_OK; } else { GstBuffer *out; - guint8 *data; - data = gst_adapter_take (filter->adapter, avail); - - out = gst_buffer_new (); - GST_BUFFER_DATA (out) = data; - GST_BUFFER_SIZE (out) = avail; - GST_BUFFER_MALLOCDATA (out) = data; + out = gst_adapter_take_buffer (filter->adapter, avail); ret = gst_pes_filter_data_push (filter, filter->first, out); filter->first = FALSE; |