From 281f2f3590607e0fb816ef6e53e1fedf2cb4fc2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Wed, 12 Feb 2014 16:01:05 +0100 Subject: [PATCH] hlsdemux: Wait for the update task to finish when shutting down --- ext/hls/gsthlsdemux.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ext/hls/gsthlsdemux.c b/ext/hls/gsthlsdemux.c index b0a72095fe..638360fb2c 100644 --- a/ext/hls/gsthlsdemux.c +++ b/ext/hls/gsthlsdemux.c @@ -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: