From fadff26eec5134f301a862a0f0f1553cec0ad3a4 Mon Sep 17 00:00:00 2001 From: Mark Nauwelaerts Date: Mon, 2 Aug 2010 12:46:41 +0200 Subject: [PATCH] rtpmp4vdepay: fix buffer leak --- gst/rtp/gstrtpmp4vdepay.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/gst/rtp/gstrtpmp4vdepay.c b/gst/rtp/gstrtpmp4vdepay.c index 04a1442549..c1c911afe8 100644 --- a/gst/rtp/gstrtpmp4vdepay.c +++ b/gst/rtp/gstrtpmp4vdepay.c @@ -152,11 +152,10 @@ gst_rtp_mp4v_depay_setcaps (GstBaseRTPDepayload * depayload, GstCaps * caps) GstBuffer *buffer; buffer = gst_value_get_buffer (&v); - gst_buffer_ref (buffer); - g_value_unset (&v); - gst_caps_set_simple (srccaps, "codec_data", GST_TYPE_BUFFER, buffer, NULL); + /* caps takes ref */ + g_value_unset (&v); } else { g_warning ("cannot convert config to buffer"); }