summaryrefslogtreecommitdiffstats
path: root/cfg-mplayer.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2012-09-17 08:45:35 +0200
committerwm4 <wm4@nowhere>2012-10-12 10:10:30 +0200
commit10437c35df5d3944625fa6cee05e565b0791fe15 (patch)
tree31dfa05575fdeac18121328ea4ffe9aea3fdafd8 /cfg-mplayer.h
parent6f1486b397d632feaa71f88b980491aea7b69256 (diff)
downloadmpv-10437c35df5d3944625fa6cee05e565b0791fe15.tar.bz2
mpv-10437c35df5d3944625fa6cee05e565b0791fe15.tar.xz
commands: rename "osdlevel" option and property, make it a choice
Rename both the option and property to "osd-level", which fits a bit better with the general naming scheme. Make it a choice instead of an integer range. I failed to come up with good names for the various levels, so leave them as-is. Remove the useless property handler for the "loop" property too.
Diffstat (limited to 'cfg-mplayer.h')
-rw-r--r--cfg-mplayer.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/cfg-mplayer.h b/cfg-mplayer.h
index d9d78082ac..080b04bd63 100644
--- a/cfg-mplayer.h
+++ b/cfg-mplayer.h
@@ -670,6 +670,8 @@ const m_option_t mplayer_opts[]={
{"use-filedir-conf", &use_filedir_conf, CONF_TYPE_FLAG, CONF_GLOBAL, 0, 1, NULL},
OPT_INTRANGE("osdlevel", osd_level, 0, 0, 3),
+ OPT_CHOICE("osd-level", osd_level, 0,
+ ({"0", 0}, {"1", 1}, {"2", 2}, {"3", 3})),
OPT_INTRANGE("osd-duration", osd_duration, 0, 0, 3600000),
OPT_MAKE_FLAGS("osd-fractions", osd_fractions, 0),