hls: Actually retry 3 times as advertised instead of 2

This commit is contained in:
Sebastian Dröge 2014-09-15 11:59:19 +03:00
parent 0b34cde46e
commit d4a53a16dd

View file

@ -1199,7 +1199,7 @@ gst_hls_demux_stream_loop (GstHLSDemux * demux)
}
} else {
demux->download_failed_count++;
if (demux->download_failed_count < DEFAULT_FAILED_COUNT) {
if (demux->download_failed_count <= DEFAULT_FAILED_COUNT) {
GST_WARNING_OBJECT (demux, "Could not fetch the next fragment");
g_clear_error (&err);
@ -1441,7 +1441,7 @@ gst_hls_demux_updates_loop (GstHLSDemux * demux)
if (demux->stop_updates_task)
goto quit;
demux->client->update_failed_count++;
if (demux->client->update_failed_count < DEFAULT_FAILED_COUNT) {
if (demux->client->update_failed_count <= DEFAULT_FAILED_COUNT) {
GST_WARNING_OBJECT (demux, "Could not update the playlist");
demux->next_update =
g_get_monotonic_time () +