diff options
author | Mark Nauwelaerts <mark.nauwelaerts@collabora.co.uk> | 2010-08-02 12:46:41 +0200 |
---|---|---|
committer | Mark Nauwelaerts <mark.nauwelaerts@collabora.co.uk> | 2010-08-02 13:04:39 +0200 |
commit | fadff26eec5134f301a862a0f0f1553cec0ad3a4 (patch) | |
tree | 0365e4f4ab0e459625ab6317cba0281d572d437d | |
parent | f5adfaed23ee127dcbb31d122628cddbcad288a4 (diff) |
rtpmp4vdepay: fix buffer leak
-rw-r--r-- | gst/rtp/gstrtpmp4vdepay.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gst/rtp/gstrtpmp4vdepay.c b/gst/rtp/gstrtpmp4vdepay.c index 04a144254..c1c911afe 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"); } |