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
This commit is contained in:
Youness Alaoui 2011-09-08 18:25:00 +00:00 committed by Sebastian Dröge
parent 61ee9918be
commit 84e67767a3

View file

@ -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: