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:
Florin Apostol 2015-10-30 12:49:20 +00:00 committed by Vincent Penquerc'h
parent 7d909966e5
commit a2ffe7e979

View file

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