From 84e67767a32deca18a50bd554dc21c5dd471f12a Mon Sep 17 00:00:00 2001 From: Youness Alaoui Date: Thu, 8 Sep 2011 18:25:00 +0000 Subject: [PATCH] hlsdemux: Do not lock the mutex of the fetcher during EOS The fetch_location might call stop_fetcher which could generate an EOS and cause a deadlock --- gst/hls/gsthlsdemux.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/gst/hls/gsthlsdemux.c b/gst/hls/gsthlsdemux.c index ea23ef604a..7b8f0ecc25 100644 --- a/gst/hls/gsthlsdemux.c +++ b/gst/hls/gsthlsdemux.c @@ -574,9 +574,7 @@ gst_hls_demux_fetcher_sink_event (GstPad * pad, GstEvent * event) GST_DEBUG_OBJECT (demux, "Got EOS on the fetcher pad"); /* signal we have fetched the URI */ if (!demux->cancelled) { - g_mutex_lock (demux->fetcher_lock); g_cond_broadcast (demux->fetcher_cond); - g_mutex_unlock (demux->fetcher_lock); } } default: