mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-09-09 13:48:55 +00:00
rtpmp4vdepay: fix buffer leak
This commit is contained in:
parent
f5adfaed23
commit
fadff26eec
1 changed files with 2 additions and 3 deletions
|
@ -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");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue