summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--player/osd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/player/osd.c b/player/osd.c
index 65747bc7cf..da14f8ff2b 100644
--- a/player/osd.c
+++ b/player/osd.c
@@ -368,7 +368,8 @@ void set_osd_bar_chapters(struct MPContext *mpctx, int type)
} else {
int num = get_chapter_count(mpctx);
for (int n = 0; n < num; n++) {
- double time = chapter_start_time(mpctx, n);
+ double time = chapter_start_time(mpctx, n) -
+ get_start_time(mpctx);
if (time >= 0) {
float pos = time / len;
MP_TARRAY_APPEND(mpctx, mpctx->osd_progbar.stops,