summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--player/command.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/player/command.c b/player/command.c
index 30189c72a5..9bd3b21deb 100644
--- a/player/command.c
+++ b/player/command.c
@@ -4627,8 +4627,11 @@ static void command_event(struct MPContext *mpctx, int event, void *arg)
}
ctx->prev_pts = now;
}
- if (event == MPV_EVENT_SEEK) {
+ if (event == MPV_EVENT_SEEK)
ctx->prev_pts = MP_NOPTS_VALUE;
+ if (event == MPV_EVENT_END_FILE || event == MPV_EVENT_FILE_LOADED) {
+ // Update chapters - does nothing if something else is visible.
+ set_osd_bar_chapters(mpctx, OSD_BAR_SEEK);
}
}