Revert "baseparse: don't leak caps in gst_base_parse_process_streamheader"

This reverts commit 5e8b4bf085.

This causes refcounting criticals in the baseparse unit test.
This commit is contained in:
Tim-Philipp Müller 2014-10-03 09:01:15 +01:00
parent 9b34972ba1
commit c78a1b111c

View file

@ -2756,16 +2756,10 @@ 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;
}