mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
adaptivedemux: make sure to always stop the stream on EOS
For On-Demand streams, always stop the tasks for streams that reached EOS
This commit is contained in:
parent
230022fe62
commit
e11c311c31
1 changed files with 1 additions and 5 deletions
|
@ -1885,17 +1885,13 @@ gst_adaptive_demux_stream_download_loop (GstAdaptiveDemuxStream * stream)
|
|||
}
|
||||
gst_task_pause (stream->download_task);
|
||||
} else {
|
||||
gst_task_pause (stream->download_task);
|
||||
if (gst_adaptive_demux_combine_flows (demux) == GST_FLOW_EOS) {
|
||||
if (gst_adaptive_demux_has_next_period (demux)) {
|
||||
gst_task_pause (stream->download_task);
|
||||
gst_adaptive_demux_advance_period (demux);
|
||||
ret = GST_FLOW_OK;
|
||||
goto end;
|
||||
} else {
|
||||
gst_task_pause (stream->download_task);
|
||||
}
|
||||
} else {
|
||||
ret = GST_FLOW_OK;
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue