From d4a53a16dd3d1f3251eed07e97efc09576001812 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Mon, 15 Sep 2014 11:59:19 +0300 Subject: [PATCH] hls: Actually retry 3 times as advertised instead of 2 --- ext/hls/gsthlsdemux.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/hls/gsthlsdemux.c b/ext/hls/gsthlsdemux.c index e4949950e9..5809712150 100644 --- a/ext/hls/gsthlsdemux.c +++ b/ext/hls/gsthlsdemux.c @@ -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 () +