mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
adaptivedemux: stop task on multiple download errors
On multiple download errors, we stop the download task and change the src element state to NULL. https://bugzilla.gnome.org/show_bug.cgi?id=756240
This commit is contained in:
parent
7d909966e5
commit
a2ffe7e979
1 changed files with 7 additions and 0 deletions
|
@ -2799,6 +2799,13 @@ download_error:
|
|||
"Download error: Couldn't download fragments, too many failures");
|
||||
}
|
||||
|
||||
gst_task_stop (stream->download_task);
|
||||
if (stream->src) {
|
||||
gst_element_set_state (stream->src, GST_STATE_NULL);
|
||||
gst_bin_remove (GST_BIN_CAST (demux), stream->src);
|
||||
stream->src = NULL;
|
||||
}
|
||||
|
||||
gst_element_post_message (GST_ELEMENT_CAST (demux), msg);
|
||||
|
||||
goto end;
|
||||
|
|
Loading…
Reference in a new issue