diff options
author | pavelxdd <pavel.otchertsov@gmail.com> | 2017-12-11 02:21:30 +0300 |
---|---|---|
committer | Kevin Mitchell <kevmitch@gmail.com> | 2017-12-10 17:20:58 -0800 |
commit | fd4e756e9c1c9088875d9c856946664b2e42f137 (patch) | |
tree | 99bce3b06b918d0ad51cb0fb714eacde57f4c047 /player/osd.c | |
parent | affcccb00792cbce28e135a7cb4589dc9c0525cd (diff) | |
download | mpv-fd4e756e9c1c9088875d9c856946664b2e42f137.tar.bz2 mpv-fd4e756e9c1c9088875d9c856946664b2e42f137.tar.xz |
osd: fix a compiler warning by adding parentheses in if condition
Diffstat (limited to 'player/osd.c')
-rw-r--r-- | player/osd.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/player/osd.c b/player/osd.c index 6461905c86..9477dd3f38 100644 --- a/player/osd.c +++ b/player/osd.c @@ -358,7 +358,9 @@ void set_osd_bar_chapters(struct MPContext *mpctx, int type) if (len > 0) { double ab_loop_start_time = get_ab_loop_start_time(mpctx); if (opts->ab_loop[0] != MP_NOPTS_VALUE || - ab_loop_start_time != MP_NOPTS_VALUE && opts->ab_loop[1] != MP_NOPTS_VALUE) { + (ab_loop_start_time != MP_NOPTS_VALUE && + opts->ab_loop[1] != MP_NOPTS_VALUE)) + { MP_TARRAY_APPEND(mpctx, mpctx->osd_progbar.stops, mpctx->osd_progbar.num_stops, ab_loop_start_time / len); } |