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:
Matej Knopp 2014-10-02 03:30:24 +02:00 committed by Tim-Philipp Müller
parent c497f629bc
commit d8aac32c78

View file

@ -2756,10 +2756,16 @@ gst_base_parse_process_streamheader (GstBaseParse * parse)
GST_OBJECT_CAST (parse), gst_buffer_ref (buffer));
}
gst_caps_unref (caps);
return ret;
notfound:
{
if (caps) {
gst_caps_unref (caps);
}
GST_DEBUG_OBJECT (parse, "No streamheader on caps");
return GST_FLOW_OK;
}