Skip to content

Commit

Permalink
loadfile: insert missing parentheses
Browse files Browse the repository at this point in the history
Impressively, gcc's parentheses warning has caught a situation where
the missing parentheses were really needed.
  • Loading branch information
philipl authored and dyphire committed Jul 8, 2023
1 parent d9f2891 commit 4e41686
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions player/loadfile.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4e41686

Please sign in to comment.