hlsdemux: Wait for the update task to finish when shutting down

This commit is contained in:
Sebastian Dröge 2014-02-12 16:01:05 +01:00
parent 4dcacc1773
commit 281f2f3590

View file

@ -325,6 +325,7 @@ gst_hls_demux_change_state (GstElement * element, GstStateChange transition)
demux->cancelled = TRUE;
gst_hls_demux_stop (demux);
gst_task_join (demux->stream_task);
gst_task_join (demux->updates_task);
gst_hls_demux_reset (demux, FALSE);
break;
default: