From 88762cd6a7adfe3c9fb70fb3fcdb85b254119bf9 Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 11 Nov 2014 22:07:16 +0100 Subject: 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. --- player/command.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'player/command.c') 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; } -- cgit v1.2.3