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.
This commit is contained in:
LaserEyess 2022-01-17 10:02:19 -05:00 committed by Dudemanguy
parent 4cb4660c7c
commit 471b3c2b59
1 changed files with 2 additions and 2 deletions

View File

@ -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) {