mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 07:16:55 +00:00
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:
parent
83c0e1e25d
commit
288903a203
1 changed files with 4 additions and 0 deletions
|
@ -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 ();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue