mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-08 15:32:32 +00:00
baseparse: don't leak caps in gst_base_parse_process_streamheader
https://bugzilla.gnome.org/show_bug.cgi?id=737762
This commit is contained in:
parent
798cafa7fc
commit
5e8b4bf085
1 changed files with 6 additions and 0 deletions
|
@ -2756,10 +2756,16 @@ gst_base_parse_process_streamheader (GstBaseParse * parse)
|
||||||
GST_OBJECT_CAST (parse), gst_buffer_ref (buffer));
|
GST_OBJECT_CAST (parse), gst_buffer_ref (buffer));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
gst_caps_unref (caps);
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
notfound:
|
notfound:
|
||||||
{
|
{
|
||||||
|
if (caps) {
|
||||||
|
gst_caps_unref (caps);
|
||||||
|
}
|
||||||
|
|
||||||
GST_DEBUG_OBJECT (parse, "No streamheader on caps");
|
GST_DEBUG_OBJECT (parse, "No streamheader on caps");
|
||||||
return GST_FLOW_OK;
|
return GST_FLOW_OK;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue