summaryrefslogtreecommitdiffstats
path: root/player/command.c
diff options
context:
space:
mode:
Diffstat (limited to 'player/command.c')
-rw-r--r--player/command.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/player/command.c b/player/command.c
index 0e7c505104..66ab4eb95f 100644
--- a/player/command.c
+++ b/player/command.c
@@ -4650,6 +4650,10 @@ static void command_event(struct MPContext *mpctx, int event, void *arg)
ctx->is_idle = true;
if (event == MPV_EVENT_START_FILE)
ctx->is_idle = false;
+ 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);
+ }
}
void mp_notify(struct MPContext *mpctx, int event, void *arg)