From d69297a23c955d01516cb9ed7e707697b7a98083 Mon Sep 17 00:00:00 2001 From: Youness Alaoui Date: Thu, 25 Aug 2011 23:37:00 +0000 Subject: hlsdemux: if we're canceling a fetcher, we must stop its thread --- gst/hls/gsthlsdemux.c | 5 +++-- 1 file 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 -- cgit v1.2.3