mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-18 05:16:05 +00:00
hlsdemux: Do not join the task from the task's thread itself. join it only in the state change
This commit is contained in:
parent
dbcec90989
commit
baf875b928
1 changed files with 2 additions and 1 deletions
|
@ -310,6 +310,7 @@ gst_hls_demux_change_state (GstElement * element, GstStateChange transition)
|
|||
case GST_STATE_CHANGE_PAUSED_TO_READY:
|
||||
demux->cancelled = TRUE;
|
||||
gst_hls_demux_stop (demux);
|
||||
gst_task_join (demux->task);
|
||||
gst_hls_demux_reset (demux, FALSE);
|
||||
break;
|
||||
default:
|
||||
|
@ -665,7 +666,7 @@ gst_hls_demux_stop (GstHLSDemux * demux)
|
|||
g_mutex_lock (demux->fetcher_lock);
|
||||
gst_hls_demux_stop_fetcher_locked (demux, TRUE);
|
||||
g_mutex_unlock (demux->fetcher_lock);
|
||||
gst_task_join (demux->task);
|
||||
gst_task_stop (demux->task);
|
||||
gst_hls_demux_stop_update (demux);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue