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:
Nicolas Dufresne 2017-06-21 10:48:52 -04:00 committed by Tim-Philipp Müller
parent ab3f333dd0
commit 486dd447e6

View file

@ -1084,6 +1084,7 @@ gst_base_parse_negotiate_default_caps (GstBaseParse * parse)
GST_INFO_OBJECT (parse,
"Chose default caps %" GST_PTR_FORMAT " for initial gap", default_caps);
if (sinkcaps)
gst_caps_unref (sinkcaps);
gst_caps_unref (caps);