summaryrefslogtreecommitdiffstats
path: root/m_property.c
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 /m_property.c
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 'm_property.c')
-rw-r--r--m_property.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/m_property.c b/m_property.c
index e75cbe43ac..fac3ec8285 100644
--- a/m_property.c
+++ b/m_property.c
@@ -274,19 +274,6 @@ int m_property_int_range(const m_option_t *prop, int action,
return m_property_int_ro(prop, action, arg, *var);
}
-int m_property_choice(const m_option_t *prop, int action,
- void *arg, int *var)
-{
- switch (action) {
- case M_PROPERTY_STEP_UP:
- case M_PROPERTY_STEP_DOWN:
- *var += action == M_PROPERTY_STEP_UP ? 1 : prop->max;
- *var %= (int)prop->max + 1;
- return 1;
- }
- return m_property_int_range(prop, action, arg, var);
-}
-
int m_property_flag_ro(const m_option_t *prop, int action,
void *arg, int var)
{