dashdemux: avoid an assertion when stopping the pipeline

Avoids asserting when dataqueues are setting to flushing due
to a pipeline stop during a pad switch.
This commit is contained in:
Thiago Santos 2013-02-01 02:12:25 -03:00
parent 83c0e1e25d
commit 288903a203

View 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 ();
}