mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 23:36:38 +00:00
hlsdemux: Reset GstUriDownloader cancellation when restarting to play
This commit is contained in:
parent
27739e8bb6
commit
b92791d102
1 changed files with 2 additions and 0 deletions
|
@ -313,6 +313,7 @@ gst_hls_demux_change_state (GstElement * element, GstStateChange transition)
|
||||||
switch (transition) {
|
switch (transition) {
|
||||||
case GST_STATE_CHANGE_READY_TO_PAUSED:
|
case GST_STATE_CHANGE_READY_TO_PAUSED:
|
||||||
gst_hls_demux_reset (demux, FALSE);
|
gst_hls_demux_reset (demux, FALSE);
|
||||||
|
gst_uri_downloader_reset (demux->downloader);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
@ -433,6 +434,7 @@ gst_hls_demux_src_event (GstPad * pad, GstObject * parent, GstEvent * event)
|
||||||
}
|
}
|
||||||
|
|
||||||
demux->cancelled = FALSE;
|
demux->cancelled = FALSE;
|
||||||
|
gst_uri_downloader_reset (demux->downloader);
|
||||||
gst_task_start (demux->stream_task);
|
gst_task_start (demux->stream_task);
|
||||||
g_rec_mutex_unlock (&demux->stream_lock);
|
g_rec_mutex_unlock (&demux->stream_lock);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue