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/osd.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'player/osd.c') diff --git a/player/osd.c b/player/osd.c index e59920dd03..7e099e2d0c 100644 --- a/player/osd.c +++ b/player/osd.c @@ -452,6 +452,12 @@ static void add_seek_osd_messages(struct MPContext *mpctx) mpctx->master_demuxer->edition + 1, mpctx->master_demuxer->num_editions); } + if (mpctx->add_osd_seek_info & OSD_SEEK_INFO_CURRENT_FILE) { + if (mpctx->filename) { + set_osd_msg(mpctx, 1, mpctx->opts->osd_duration, "%s", + mpctx->filename); + } + } mpctx->add_osd_seek_info = 0; } -- cgit v1.2.3