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
This commit is contained in:
Sebastian Dröge 2018-07-31 12:33:54 +03:00
parent e58dceec3a
commit 6ce2a5f7bf

View file

@ -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;