diff options
Diffstat (limited to 'gst/rtp/gstrtpsv3vdepay.c')
-rw-r--r-- | gst/rtp/gstrtpsv3vdepay.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/gst/rtp/gstrtpsv3vdepay.c b/gst/rtp/gstrtpsv3vdepay.c index c67b5ef6..f2df1794 100644 --- a/gst/rtp/gstrtpsv3vdepay.c +++ b/gst/rtp/gstrtpsv3vdepay.c @@ -252,14 +252,10 @@ gst_rtp_sv3v_depay_process (GstBaseRTPDepayload * depayload, GstBuffer * buf) if (M) { /* frame is completed: push contents of adapter */ guint avail; - guint8 *data; guint32 timestamp; avail = gst_adapter_available (rtpsv3vdepay->adapter); - data = gst_adapter_take (rtpsv3vdepay->adapter, avail); - - /* create buffer with data */ - outbuf = gst_rtp_buffer_new_take_data (data, avail); + outbuf = gst_adapter_take_buffer (rtpsv3vdepay->adapter, avail); /* timestamp for complete buffer is that of last buffer as well */ timestamp = gst_rtp_buffer_get_timestamp (buf); |