From 98ea3e464766afea268d587f02bf0c3d6f8a5a9a Mon Sep 17 00:00:00 2001 From: Graham Leggett Date: Mon, 24 Oct 2016 19:13:22 +0000 Subject: [PATCH] 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 --- gst/playback/gstdecodebin3.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gst/playback/gstdecodebin3.c b/gst/playback/gstdecodebin3.c index 61bc860..5b33f85 100644 --- a/gst/playback/gstdecodebin3.c +++ b/gst/playback/gstdecodebin3.c @@ -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 -- 2.7.4