mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-01 03:52:25 +00:00
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:
parent
72e05dfd7c
commit
9a50ca5fbc
1 changed files with 1 additions and 1 deletions
|
@ -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");
|
||||||
|
|
Loading…
Reference in a new issue