mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-24 08:08:22 +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;
|
||||
|
||||
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");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue