dashdemux: avoid an assertion when stopping the pipeline
authorThiago Santos <thiago.sousa.santos@collabora.com>
Fri, 1 Feb 2013 05:12:25 +0000 (02:12 -0300)
committerThiago Santos <thiago.sousa.santos@collabora.com>
Wed, 8 May 2013 21:14:39 +0000 (18:14 -0300)
Avoids asserting when dataqueues are setting to flushing due
to a pipeline stop during a pad switch.

ext/dash/gstdashdemux.c

index ea3ecbe..24d4fb2 100644 (file)
@@ -983,6 +983,10 @@ switch_pads (GstDashDemux * demux)
     GstCaps *caps = NULL;
 
     if (!gst_data_queue_pop (stream->queue, &item)) {
+      if (demux->cancelled) {
+        g_slist_free (oldpads);
+        return;
+      }
       g_assert_not_reached ();
     }