loadfile: insert missing parentheses

Impressively, gcc's parentheses warning has caught a situation where
the missing parentheses were really needed.
This commit is contained in:
Philip Langdale committed 2023-06-26 09:26:27 -07:00
1 parent 945d7c1eda
commit 9921785340
1 file changed
+2 -2
+2 -2
View File
@@ -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;