diff options
author | Olivier CrĂȘte <olivier.crete@collabora.com> | 2013-09-17 17:41:39 -0400 |
---|---|---|
committer | Olivier CrĂȘte <olivier.crete@collabora.com> | 2013-09-17 17:41:39 -0400 |
commit | b92791d1020ff294c358ebc75bbb95e8b9c43417 (patch) | |
tree | 9348c6e4d02882f44f3f414acaaf9eb20a14f050 | |
parent | 27739e8bb68e085b518864dd6db2198c2069f292 (diff) |
hlsdemux: Reset GstUriDownloader cancellation when restarting to play
-rw-r--r-- | ext/hls/gsthlsdemux.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/hls/gsthlsdemux.c b/ext/hls/gsthlsdemux.c index efa712d5b..235af1ffd 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); |