From 9921785340e3161a5b5dee0f9792105cfc57054a Mon Sep 17 00:00:00 2001 From: Philip Langdale Date: Mon, 26 Jun 2023 09:24:39 -0700 Subject: [PATCH] loadfile: insert missing parentheses Impressively, gcc's parentheses warning has caught a situation where the missing parentheses were really needed. --- player/loadfile.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/player/loadfile.c b/player/loadfile.c index 4ef1d4027b..aeca0d42a1 100644 --- a/player/loadfile.c +++ b/player/loadfile.c @@ -652,8 +652,8 @@ struct track *select_default_track(struct MPContext *mpctx, int order, // If the codec is DVD or PGS, we can display it in forced-only mode. // This isn't really meaningful for other codecs, so we'll just pick nothing. if (pick->stream && - !strcmp(pick->stream->codec->codec, "dvd_subtitle") || - !strcmp(pick->stream->codec->codec, "hdmv_pgs_subtitle")) + (!strcmp(pick->stream->codec->codec, "dvd_subtitle") || + !strcmp(pick->stream->codec->codec, "hdmv_pgs_subtitle"))) pick->forced_only_def = 1; else pick = NULL;