From b92791d1020ff294c358ebc75bbb95e8b9c43417 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Olivier=20Cr=C3=AAte?= Date: Tue, 17 Sep 2013 17:41:39 -0400 Subject: [PATCH] hlsdemux: Reset GstUriDownloader cancellation when restarting to play --- ext/hls/gsthlsdemux.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ext/hls/gsthlsdemux.c b/ext/hls/gsthlsdemux.c index efa712d..235af1f 100644 --- a/ext/hls/gsthlsdemux.c +++ b/ext/hls/gsthlsdemux.c @@ -313,6 +313,7 @@ gst_hls_demux_change_state (GstElement * element, GstStateChange transition) switch (transition) { case GST_STATE_CHANGE_READY_TO_PAUSED: gst_hls_demux_reset (demux, FALSE); + gst_uri_downloader_reset (demux->downloader); break; default: break; @@ -433,6 +434,7 @@ gst_hls_demux_src_event (GstPad * pad, GstObject * parent, GstEvent * event) } demux->cancelled = FALSE; + gst_uri_downloader_reset (demux->downloader); gst_task_start (demux->stream_task); g_rec_mutex_unlock (&demux->stream_lock); -- 2.7.4