decodebin3: Fix assertion failure when unreffing NULL stream caps

GStreamer-CRITICAL **: gst_mini_object_unref: assertion 'mini_object != NULL' failed

https://bugzilla.gnome.org/show_bug.cgi?id=773441
This commit is contained in:
Graham Leggett 2016-10-24 19:13:22 +00:00 committed by Sebastian Dröge
parent 2d3af07c3d
commit 98ea3e4647

View file

@ -1183,7 +1183,8 @@ handle_stream_collection (GstDecodebin3 * dbin,
GST_DEBUG (" caps : %" GST_PTR_FORMAT, caps);
if (taglist)
gst_tag_list_unref (taglist);
gst_caps_unref (caps);
if (caps)
gst_caps_unref (caps);
}
#endif