From 9a50ca5fbc2cc580c87d8e9a31b9f7c26ac97f5e Mon Sep 17 00:00:00 2001 From: Thiago Santos Date: Thu, 3 Oct 2013 07:57:17 -0300 Subject: [PATCH] hlsdemux: Small improvement on always valid if condition No need to check for !cancelled as the above if guarantees it to be true --- ext/hls/gsthlsdemux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/hls/gsthlsdemux.c b/ext/hls/gsthlsdemux.c index 8390ea01a5..33d4021a4a 100644 --- a/ext/hls/gsthlsdemux.c +++ b/ext/hls/gsthlsdemux.c @@ -927,7 +927,7 @@ gst_hls_demux_updates_loop (GstHLSDemux * demux) if (!gst_hls_demux_get_next_fragment (demux, FALSE)) { if (demux->cancelled) { goto quit; - } else if (!demux->end_of_playlist && !demux->cancelled) { + } else if (!demux->end_of_playlist) { demux->client->update_failed_count++; if (demux->client->update_failed_count < DEFAULT_FAILED_COUNT) { GST_WARNING_OBJECT (demux, "Could not fetch the next fragment");