mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-05 06:58:56 +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