adaptivedemux: fix header redownload in case of errors

https://bugzilla.gnome.org/show_bug.cgi?id=756239
This commit is contained in:
Florin Apostol 2015-10-08 12:35:44 +01:00 committed by Vincent Penquerc'h
parent e0ef335426
commit a85b64bb6d

View file

@ -2395,10 +2395,10 @@ gst_adaptive_demux_stream_download_fragment (GstAdaptiveDemuxStream * stream)
if (stream->need_header) {
ret = gst_adaptive_demux_stream_download_header_fragment (stream);
stream->need_header = FALSE;
if (ret != GST_FLOW_OK) {
return ret;
}
stream->need_header = FALSE;
}
url = stream->fragment.uri;