From 6ce2a5f7bf6bde0cb985facf4da5e67281d2b7bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Tue, 31 Jul 2018 12:33:54 +0300 Subject: [PATCH] qtdemux: Don't assert if a file does not have any active streams ** (gst-play-1.0:9113): CRITICAL **: 12:31:54.360: qtdemux_is_streams_update: assertion 'qtdemux->active_streams != NULL' failed --- gst/isomp4/qtdemux.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gst/isomp4/qtdemux.c b/gst/isomp4/qtdemux.c index d1ce320b88..b2a08d728c 100644 --- a/gst/isomp4/qtdemux.c +++ b/gst/isomp4/qtdemux.c @@ -12377,7 +12377,8 @@ qtdemux_is_streams_update (GstQTDemux * qtdemux) { GList *new, *old; - g_return_val_if_fail (qtdemux->active_streams != NULL, FALSE); + if (!qtdemux->active_streams) + return FALSE; /* streams in list are sorted in track-id order */ for (new = qtdemux->active_streams, old = qtdemux->old_streams; new && old;