summaryrefslogtreecommitdiffstats
path: root/player/loadfile.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-11-11 22:07:16 +0100
committerwm4 <wm4@nowhere>2014-11-11 22:07:16 +0100
commit88762cd6a7adfe3c9fb70fb3fcdb85b254119bf9 (patch)
tree3f328d57fddad1fa5a7948d4c354afee10cc6a82 /player/loadfile.c
parentd4cc41bbcd378d30a3c52c5342c395e7f64539ca (diff)
downloadmpv-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/loadfile.c')
-rw-r--r--player/loadfile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/player/loadfile.c b/player/loadfile.c
index 476461c969..2cdcc599c1 100644
--- a/player/loadfile.c
+++ b/player/loadfile.c
@@ -917,7 +917,7 @@ static void play_current_file(struct MPContext *mpctx)
mpctx->filename = talloc_strdup(tmp, mpctx->playing->filename);
mpctx->stream_open_filename = mpctx->filename;
- mpctx->add_osd_seek_info &= OSD_SEEK_INFO_EDITION;
+ mpctx->add_osd_seek_info &= OSD_SEEK_INFO_EDITION | OSD_SEEK_INFO_CURRENT_FILE;
if (opts->reset_options) {
for (int n = 0; opts->reset_options[n]; n++) {