summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo Izen <leo.izen@gmail.com>2017-12-05 17:02:10 -0500
committerLeo Izen <leo.izen@gmail.com>2017-12-05 17:15:08 -0500
commit0433162f7f9590b3b9001fdb0aa3d8e207561363 (patch)
treef9e815a801fea3559dae80ffb509d064df9146c7
parent9513165c99c2ab3a945620b260823440f8ad125d (diff)
downloadmpv-0433162f7f9590b3b9001fdb0aa3d8e207561363.tar.bz2
mpv-0433162f7f9590b3b9001fdb0aa3d8e207561363.tar.xz
player/osd.c: fix putting --start time on OSD
I missed an ab-loop check in ff7e294. It should now work as expected.
-rw-r--r--player/osd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/player/osd.c b/player/osd.c
index 127550c29b..6461905c86 100644
--- a/player/osd.c
+++ b/player/osd.c
@@ -357,7 +357,8 @@ void set_osd_bar_chapters(struct MPContext *mpctx, int type)
double len = get_time_length(mpctx);
if (len > 0) {
double ab_loop_start_time = get_ab_loop_start_time(mpctx);
- if (ab_loop_start_time != MP_NOPTS_VALUE) {
+ if (opts->ab_loop[0] != 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);
}