diff options
author | wm4 <wm4@nowhere> | 2014-11-11 22:07:16 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-11-11 22:07:16 +0100 |
commit | 88762cd6a7adfe3c9fb70fb3fcdb85b254119bf9 (patch) | |
tree | 3f328d57fddad1fa5a7948d4c354afee10cc6a82 /player/command.c | |
parent | d4cc41bbcd378d30a3c52c5342c395e7f64539ca (diff) | |
download | mpv-88762cd6a7adfe3c9fb70fb3fcdb85b254119bf9.tar.bz2 mpv-88762cd6a7adfe3c9fb70fb3fcdb85b254119bf9.tar.xz |
player: make the osd-msg prefix work for playlist_next/prev
If input.conf e.g. contains "n osd-msg playlist_next", then pressing the
n key will switch to the next file, and display the filename on OSD.
Diffstat (limited to 'player/command.c')
-rw-r--r-- | player/command.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/player/command.c b/player/command.c index 3513d99afc..4bbb46860d 100644 --- a/player/command.c +++ b/player/command.c @@ -4060,6 +4060,8 @@ int run_command(MPContext *mpctx, mp_cmd_t *cmd) mpctx->playlist->current = e; mpctx->playlist->current_was_replaced = false; mpctx->stop_play = PT_CURRENT_ENTRY; + if (on_osd & MP_ON_OSD_MSG) + mpctx->add_osd_seek_info |= OSD_SEEK_INFO_CURRENT_FILE; break; } |