summaryrefslogtreecommitdiffstats
path: root/options/options.c
diff options
context:
space:
mode:
authorKevin Mitchell <kevmitch@gmail.com>2018-01-21 15:36:08 -0800
committerKevin Mitchell <kevmitch@gmail.com>2018-01-26 21:50:38 -0800
commit3766024dcd85ec7b3bffdcf81cf1356d6fc82543 (patch)
tree464a329515afcc23579822e598804443677b39aa /options/options.c
parent8c8dcc698b394be4de5804313e8d8a7a4c094e2f (diff)
downloadmpv-3766024dcd85ec7b3bffdcf81cf1356d6fc82543.tar.bz2
mpv-3766024dcd85ec7b3bffdcf81cf1356d6fc82543.tar.xz
command: add --osd-on-seek option defaulting to bar
Restores behaviour prior to aef2ed5dc13e37dec0670c451b4369b151d5c65f. That change was apparently unpopular. However, given the amount of complaining over how hard it is to change the defaults by rebinding every key, I think the extra option introduced by this commit is justified. Technically not all behaviour is restored, because now --no-osd-bar will not instead display the msg text on seek. I think that feature was a little weird and is now easy enough to remedy with the --osd-on-seek option.
Diffstat (limited to 'options/options.c')
-rw-r--r--options/options.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/options/options.c b/options/options.c
index be27344a14..44a9571598 100644
--- a/options/options.c
+++ b/options/options.c
@@ -589,6 +589,11 @@ const m_option_t mp_opts[] = {
OPT_FLAG("use-filedir-conf", use_filedir_conf, 0),
OPT_CHOICE("osd-level", osd_level, 0,
({"0", 0}, {"1", 1}, {"2", 2}, {"3", 3})),
+ OPT_CHOICE("osd-on-seek", osd_on_seek, 0,
+ ({"no", 0},
+ {"bar", 1},
+ {"msg", 2},
+ {"msg-bar", 3})),
OPT_INTRANGE("osd-duration", osd_duration, 0, 0, 3600000),
OPT_FLAG("osd-fractions", osd_fractions, 0),
@@ -878,6 +883,7 @@ const struct MPOpts mp_default_opts = {
.cursor_autohide_delay = 1000,
.video_osd = 1,
.osd_level = 1,
+ .osd_on_seek = 1,
.osd_duration = 1000,
#if HAVE_LUA
.lua_load_osc = 1,