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
This commit is contained in:
Florin Apostol 2015-10-29 11:17:48 +00:00 committed by Vincent Penquerc'h
parent 566e84cec1
commit 60f3eb15eb

View file

@ -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);
}