summaryrefslogtreecommitdiffstats
path: root/player/loadfile.c
diff options
context:
space:
mode:
authorPhilip Langdale <philipl@overt.org>2023-06-26 09:24:39 -0700
committerPhilip Langdale <philipl@overt.org>2023-06-26 09:26:27 -0700
commit9921785340e3161a5b5dee0f9792105cfc57054a (patch)
tree09d91867c22501c648cc49c7040f7e7c40926cbf /player/loadfile.c
parent945d7c1eda47c97c4bfba884fb21f398a64b2289 (diff)
downloadmpv-9921785340e3161a5b5dee0f9792105cfc57054a.tar.bz2
mpv-9921785340e3161a5b5dee0f9792105cfc57054a.tar.xz
loadfile: insert missing parentheses
Impressively, gcc's parentheses warning has caught a situation where the missing parentheses were really needed.
Diffstat (limited to 'player/loadfile.c')
-rw-r--r--player/loadfile.c4
1 files 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;