From e11c311c3108a353febb29e96ac60f3794aacc55 Mon Sep 17 00:00:00 2001 From: Thiago Santos Date: Tue, 2 Dec 2014 23:29:20 -0300 Subject: [PATCH] adaptivedemux: make sure to always stop the stream on EOS For On-Demand streams, always stop the tasks for streams that reached EOS --- gst-libs/gst/adaptivedemux/gstadaptivedemux.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/gst-libs/gst/adaptivedemux/gstadaptivedemux.c b/gst-libs/gst/adaptivedemux/gstadaptivedemux.c index 3def996e1b..03a4f9307b 100644 --- a/gst-libs/gst/adaptivedemux/gstadaptivedemux.c +++ b/gst-libs/gst/adaptivedemux/gstadaptivedemux.c @@ -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;