hlsdemux: Small improvement on always valid if condition

No need to check for !cancelled as the above if guarantees it
to be true
This commit is contained in:
Thiago Santos 2013-10-03 07:57:17 -03:00
parent 72e05dfd7c
commit 9a50ca5fbc

View file

@ -927,7 +927,7 @@ gst_hls_demux_updates_loop (GstHLSDemux * demux)
if (!gst_hls_demux_get_next_fragment (demux, FALSE)) { if (!gst_hls_demux_get_next_fragment (demux, FALSE)) {
if (demux->cancelled) { if (demux->cancelled) {
goto quit; goto quit;
} else if (!demux->end_of_playlist && !demux->cancelled) { } else if (!demux->end_of_playlist) {
demux->client->update_failed_count++; 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 fetch the next fragment"); GST_WARNING_OBJECT (demux, "Could not fetch the next fragment");