From: Sebastian Dröge Date: Tue, 28 Feb 2017 13:17:24 +0000 (+0200) Subject: decodebin3: Fix potential NULL pointer dereference on slot deactivation X-Git-Tag: 1.12.2~108 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=033057cf74f0d9bd3b73ce995a9968dcd15512b4;p=platform%2Fupstream%2Fgst-plugins-base.git decodebin3: Fix potential NULL pointer dereference on slot deactivation CID 1363331 --- diff --git a/gst/playback/gstdecodebin3.c b/gst/playback/gstdecodebin3.c index f0d6acd..0489781 100644 --- a/gst/playback/gstdecodebin3.c +++ b/gst/playback/gstdecodebin3.c @@ -2267,7 +2267,9 @@ handle_stream_switch (GstDecodebin3 * dbin, GList * select_streams, if (slot_to_deactivate) { GST_DEBUG_OBJECT (dbin, "Slot %p (%s) should be deactivated, no longer used", slot, - gst_stream_get_stream_id (slot->active_stream)); + slot-> + active_stream ? gst_stream_get_stream_id (slot->active_stream) : + "NULL"); to_deactivate = g_list_append (to_deactivate, slot); } }