diff options
author | LaserEyess <lasereyess@users.noreply.github.com> | 2022-01-17 10:02:19 -0500 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2022-01-18 13:49:19 +0000 |
commit | 471b3c2b59b6f8b86b1ae2f778e9b03f6fbc21a0 (patch) | |
tree | 6cc1dfa7100f48e8ed9530e9ad149151082f9cc5 | |
parent | 4cb4660c7cf1d9836e7877c9a58f13b92d90f4fa (diff) | |
download | mpv-471b3c2b59b6f8b86b1ae2f778e9b03f6fbc21a0.tar.bz2 mpv-471b3c2b59b6f8b86b1ae2f778e9b03f6fbc21a0.tar.xz |
player: fix parentheses warning with &&
Was tripping -Wparantheses as the && after the || was not explicitly
wrapped. However, due to operator precedence the intended effect was
still correct.
-rw-r--r-- | player/playloop.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/player/playloop.c b/player/playloop.c index 8d8f0fd8ae..aea74d437c 100644 --- a/player/playloop.c +++ b/player/playloop.c @@ -941,8 +941,8 @@ static void handle_keep_open(struct MPContext *mpctx) { struct MPOpts *opts = mpctx->opts; if (opts->keep_open && mpctx->stop_play == AT_END_OF_FILE && - (opts->keep_open == 2 || !playlist_get_next(mpctx->playlist, 1) && - opts->loop_times == 1)) + (opts->keep_open == 2 || + (!playlist_get_next(mpctx->playlist, 1) && opts->loop_times == 1))) { mpctx->stop_play = KEEP_PLAYING; if (mpctx->vo_chain) { |