diff options
author | wm4 <wm4@nowhere> | 2014-12-10 17:52:21 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-12-10 17:52:21 +0100 |
commit | f0cdd673a80ff8f89b3f4c136620e398217bfccf (patch) | |
tree | 90092c223aaca10d1573190ae31432af472480bd | |
parent | ccd4a732ab846fde583b3a8d10a8d84e7d791368 (diff) | |
download | mpv-f0cdd673a80ff8f89b3f4c136620e398217bfccf.tar.bz2 mpv-f0cdd673a80ff8f89b3f4c136620e398217bfccf.tar.xz |
player: update chapter marks when switching files
This wasn't done, so the chapter marks of the previous file were
visible. It's harmless, but looks unpolished, so fix it.
-rw-r--r-- | player/command.c | 4 |
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) |