diff options
author | Youness Alaoui <youness.alaoui@collabora.co.uk> | 2011-08-25 23:37:00 +0000 |
---|---|---|
committer | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2011-08-26 09:51:46 +0200 |
commit | d69297a23c955d01516cb9ed7e707697b7a98083 (patch) | |
tree | 57f1e74837b6e52bb123fb226340f707a01b40bb | |
parent | 42401da6867487920fb6b91fcb659b871bea9d99 (diff) |
hlsdemux: if we're canceling a fetcher, we must stop its thread
-rw-r--r-- | gst/hls/gsthlsdemux.c | 5 |
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 |