Commit fadff26e authored by Mark Nauwelaerts's avatar Mark Nauwelaerts
Browse files

rtpmp4vdepay: fix buffer leak

parent f5adfaed
...@@ -152,11 +152,10 @@ gst_rtp_mp4v_depay_setcaps (GstBaseRTPDepayload * depayload, GstCaps * caps) ...@@ -152,11 +152,10 @@ gst_rtp_mp4v_depay_setcaps (GstBaseRTPDepayload * depayload, GstCaps * caps)
GstBuffer *buffer; GstBuffer *buffer;
buffer = gst_value_get_buffer (&v); buffer = gst_value_get_buffer (&v);
gst_buffer_ref (buffer);
g_value_unset (&v);
gst_caps_set_simple (srccaps, gst_caps_set_simple (srccaps,
"codec_data", GST_TYPE_BUFFER, buffer, NULL); "codec_data", GST_TYPE_BUFFER, buffer, NULL);
/* caps takes ref */
g_value_unset (&v);
} else { } else {
g_warning ("cannot convert config to buffer"); g_warning ("cannot convert config to buffer");
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment