diff options
Diffstat (limited to 'player/osd.c')
-rw-r--r-- | player/osd.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/player/osd.c b/player/osd.c index 1453c9b599..127550c29b 100644 --- a/player/osd.c +++ b/player/osd.c @@ -356,9 +356,10 @@ void set_osd_bar_chapters(struct MPContext *mpctx, int type) mpctx->osd_progbar.num_stops = 0; double len = get_time_length(mpctx); if (len > 0) { - if (opts->ab_loop[0] != MP_NOPTS_VALUE) { + double ab_loop_start_time = get_ab_loop_start_time(mpctx); + if (ab_loop_start_time != MP_NOPTS_VALUE) { MP_TARRAY_APPEND(mpctx, mpctx->osd_progbar.stops, - mpctx->osd_progbar.num_stops, opts->ab_loop[0] / len); + mpctx->osd_progbar.num_stops, ab_loop_start_time / len); } if (opts->ab_loop[1] != MP_NOPTS_VALUE) { MP_TARRAY_APPEND(mpctx, mpctx->osd_progbar.stops, |