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
@ -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…
x
Reference in New Issue
Block a user