From 60f3eb15eb0e4e4fd4612f345b9725257a0034fd Mon Sep 17 00:00:00 2001 From: Florin Apostol Date: Thu, 29 Oct 2015 11:17:48 +0000 Subject: [PATCH] dahsdemux: task is signaled to stop without stop condition being set The gst_adaptive_demux_stream_free function is trying to stop the stream's download task. For this, it signals the task. But it fails to also set the stream->download_finished = TRUE, so the task will go back to sleep and only exit when the download is finished. https://bugzilla.gnome.org/show_bug.cgi?id=755121 --- gst-libs/gst/adaptivedemux/gstadaptivedemux.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gst-libs/gst/adaptivedemux/gstadaptivedemux.c b/gst-libs/gst/adaptivedemux/gstadaptivedemux.c index 8b9f452311..d0a06b4d16 100644 --- a/gst-libs/gst/adaptivedemux/gstadaptivedemux.c +++ b/gst-libs/gst/adaptivedemux/gstadaptivedemux.c @@ -1101,6 +1101,7 @@ gst_adaptive_demux_stream_free (GstAdaptiveDemuxStream * stream) g_mutex_lock (&stream->fragment_download_lock); stream->cancelled = TRUE; + stream->download_finished = FALSE; g_cond_signal (&stream->fragment_download_cond); g_mutex_unlock (&stream->fragment_download_lock); }