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/osd.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/osd.c')
-rw-r--r-- | player/osd.c | 6 |
1 files changed, 6 insertions, 0 deletions
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; } |