Revert "baseparse: don't leak caps in gst_base_parse_process_streamheader"
This reverts commit 5e8b4bf085180f7a4c7ae6ec0f525baeaedd4df8. This causes refcounting criticals in the baseparse unit test.
This commit is contained in:
parent
9b34972ba1
commit
c78a1b111c
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user