summaryrefslogtreecommitdiff
path: root/gst/playback/gstdecodebin3.c
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2017-02-28 15:17:24 +0200
committerSebastian Dröge <sebastian@centricular.com>2017-02-28 15:17:24 +0200
commit033057cf74f0d9bd3b73ce995a9968dcd15512b4 (patch)
tree92d5d253dd0d42dc7ddef2af309ef294642963c6 /gst/playback/gstdecodebin3.c
parentbd9fd89d61da3c6ec007020c4535129ac992f847 (diff)
decodebin3: Fix potential NULL pointer dereference on slot deactivation
CID 1363331
Diffstat (limited to 'gst/playback/gstdecodebin3.c')
-rw-r--r--gst/playback/gstdecodebin3.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gst/playback/gstdecodebin3.c b/gst/playback/gstdecodebin3.c
index f0d6acda9..0489781b4 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);
}
}