mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-22 22:16:22 +00:00
hlsdemux: Also cancel the downloader before stopping the playlist update task
This commit is contained in:
parent
b335f5a68e
commit
113ccb1a53
1 changed files with 3 additions and 0 deletions
|
@ -139,6 +139,7 @@ gst_hls_demux_dispose (GObject * obj)
|
|||
if (demux->updates_task) {
|
||||
if (GST_TASK_STATE (demux->updates_task) != GST_TASK_STOPPED) {
|
||||
GST_DEBUG_OBJECT (demux, "Leaving updates task");
|
||||
gst_uri_downloader_cancel (demux->downloader);
|
||||
gst_task_stop (demux->updates_task);
|
||||
g_mutex_lock (&demux->updates_timed_lock);
|
||||
GST_TASK_SIGNAL (demux->updates_task);
|
||||
|
@ -323,6 +324,7 @@ gst_hls_demux_change_state (GstElement * element, GstStateChange transition)
|
|||
|
||||
switch (transition) {
|
||||
case GST_STATE_CHANGE_PLAYING_TO_PAUSED:
|
||||
gst_uri_downloader_cancel (demux->downloader);
|
||||
gst_task_stop (demux->updates_task);
|
||||
g_mutex_lock (&demux->updates_timed_lock);
|
||||
GST_TASK_SIGNAL (demux->updates_task);
|
||||
|
@ -628,6 +630,7 @@ gst_hls_demux_stop (GstHLSDemux * demux)
|
|||
|
||||
if (GST_TASK_STATE (demux->updates_task) != GST_TASK_STOPPED) {
|
||||
demux->stop_stream_task = TRUE;
|
||||
gst_uri_downloader_cancel (demux->downloader);
|
||||
gst_task_stop (demux->updates_task);
|
||||
g_mutex_lock (&demux->updates_timed_lock);
|
||||
GST_TASK_SIGNAL (demux->updates_task);
|
||||
|
|
Loading…
Reference in a new issue