summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gst/hls/gsthlsdemux.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gst/hls/gsthlsdemux.c b/gst/hls/gsthlsdemux.c
index 4c932ff60..d588ed970 100644
--- a/gst/hls/gsthlsdemux.c
+++ b/gst/hls/gsthlsdemux.c
@@ -638,9 +638,10 @@ gst_hls_demux_stop_fetcher (GstHLSDemux * demux, gboolean cancelled)
/* if we stopped it to cancell a download, free the cached buffer */
if (cancelled && !gst_adapter_available (demux->download)) {
gst_adapter_clear (demux->download);
- /* signal the fetcher thread that the download has finished/cancelled */
- g_cond_signal (demux->fetcher_cond);
}
+ /* signal the fetcher thread that the download has finished/cancelled */
+ if (cancelled)
+ g_cond_broadcast (demux->fetcher_cond);
}
static void