summaryrefslogtreecommitdiffstats
path: root/gst/rtp/gstrtpmp4vdepay.c
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.net>2006-04-11 18:03:36 +0000
committerTim-Philipp Müller <tim@centricular.net>2006-04-11 18:03:36 +0000
commitf90f5bd8bf4b4498ade5e4de0061968cbc836c2c (patch)
treeb46d8473a21c4a3b4817274254b982e4e13d097b /gst/rtp/gstrtpmp4vdepay.c
parentea465303577b589b8b0ed23aed7cdb640c5e2e54 (diff)
gst/rtp/gstrtpmp4vdepay.c: Don't leak memory allocated by gst_buffer_new_and_alloc() by overwriting GST_BUFFER_MALLOC...
Original commit message from CVS: * gst/rtp/gstrtpmp4vdepay.c: (gst_rtp_mp4v_depay_process): Don't leak memory allocated by gst_buffer_new_and_alloc() by overwriting GST_BUFFER_MALLOCDATA.
Diffstat (limited to 'gst/rtp/gstrtpmp4vdepay.c')
-rw-r--r--gst/rtp/gstrtpmp4vdepay.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gst/rtp/gstrtpmp4vdepay.c b/gst/rtp/gstrtpmp4vdepay.c
index fe0b4e5a..5106916a 100644
--- a/gst/rtp/gstrtpmp4vdepay.c
+++ b/gst/rtp/gstrtpmp4vdepay.c
@@ -203,8 +203,8 @@ gst_rtp_mp4v_depay_process (GstBaseRTPDepayload * depayload, GstBuffer * buf)
avail = gst_adapter_available (rtpmp4vdepay->adapter);
- outbuf = gst_buffer_new_and_alloc (avail);
-
+ outbuf = gst_buffer_new ();
+ GST_BUFFER_SIZE (outbuf) = avail;
GST_BUFFER_MALLOCDATA (outbuf) =
gst_adapter_take (rtpmp4vdepay->adapter, avail);
GST_BUFFER_DATA (outbuf) = GST_BUFFER_MALLOCDATA (outbuf);