decodebin3: Fix assertion failure when unreffing NULL stream caps
authorGraham Leggett <minfrin@sharp.fm>
Mon, 24 Oct 2016 19:13:22 +0000 (19:13 +0000)
committerSebastian Dröge <sebastian@centricular.com>
Tue, 25 Oct 2016 09:43:22 +0000 (12:43 +0300)
GStreamer-CRITICAL **: gst_mini_object_unref: assertion 'mini_object != NULL' failed

https://bugzilla.gnome.org/show_bug.cgi?id=773441

gst/playback/gstdecodebin3.c

index 61bc860..5b33f85 100644 (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