hlsdemux: Reset GstUriDownloader cancellation when restarting to play

This commit is contained in:
Olivier Crête 2013-09-17 17:41:39 -04:00
parent 27739e8bb6
commit b92791d102

View file

@ -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);