From 471b3c2b59b6f8b86b1ae2f778e9b03f6fbc21a0 Mon Sep 17 00:00:00 2001 From: LaserEyess Date: Mon, 17 Jan 2022 10:02:19 -0500 Subject: 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. --- player/playloop.c | 4 ++-- 1 file 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) { -- cgit v1.2.3