hlsdemux: Do not take the pad stream lock, use the task's lock instead

This commit is contained in:
Youness Alaoui 2011-08-22 23:41:31 +00:00 committed by Sebastian Dröge
parent e2f69e1be9
commit 18f53cf547

View file

@ -372,7 +372,7 @@ gst_hls_demux_src_event (GstPad * pad, GstEvent * event)
g_cond_signal (demux->thread_cond); g_cond_signal (demux->thread_cond);
/* wait for streaming to finish */ /* wait for streaming to finish */
GST_PAD_STREAM_LOCK (demux->srcpad); g_static_rec_mutex_lock (&demux->task_lock);
demux->need_cache = TRUE; demux->need_cache = TRUE;
while (!g_queue_is_empty (demux->queue)) { while (!g_queue_is_empty (demux->queue)) {
@ -391,7 +391,7 @@ gst_hls_demux_src_event (GstPad * pad, GstEvent * event)
} }
gst_task_start (demux->task); gst_task_start (demux->task);
GST_PAD_STREAM_UNLOCK (demux->srcpad); g_static_rec_mutex_unlock (&demux->task_lock);
return TRUE; return TRUE;
} }