mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
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
1 changed files with 2 additions and 1 deletions
|
@ -1084,7 +1084,8 @@ gst_base_parse_negotiate_default_caps (GstBaseParse * parse)
|
||||||
GST_INFO_OBJECT (parse,
|
GST_INFO_OBJECT (parse,
|
||||||
"Chose default caps %" GST_PTR_FORMAT " for initial gap", default_caps);
|
"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);
|
gst_caps_unref (caps);
|
||||||
|
|
||||||
return default_caps;
|
return default_caps;
|
||||||
|
|
Loading…
Reference in a new issue