baseparse: sinkcaps can be NULL in default caps negotiation
This was causing harmless assertion about the unreffed caps not being of type caps. https://bugzilla.gnome.org/show_bug.cgi?id=784041
This commit is contained in:
parent
ff38bfe0ee
commit
632952be87
@ -1084,7 +1084,8 @@ gst_base_parse_negotiate_default_caps (GstBaseParse * parse)
|
||||
GST_INFO_OBJECT (parse,
|
||||
"Chose default caps %" GST_PTR_FORMAT " for initial gap", default_caps);
|
||||
|
||||
gst_caps_unref (sinkcaps);
|
||||
if (sinkcaps)
|
||||
gst_caps_unref (sinkcaps);
|
||||
gst_caps_unref (caps);
|
||||
|
||||
return default_caps;
|
||||
|
Loading…
x
Reference in New Issue
Block a user