summaryrefslogtreecommitdiffstats
path: root/m_property.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2012-09-21 14:22:23 +0200
committerwm4 <wm4@nowhere>2012-10-12 10:10:31 +0200
commitd3562198249d51087e8a23a6fafafd140eaaf935 (patch)
tree4008ecb961c4a7940e0202eacfa6c132418d1298 /m_property.c
parent74adc534b9dd8dde67042e8f3f448da3baca2fef (diff)
downloadmpv-d3562198249d51087e8a23a6fafafd140eaaf935.tar.bz2
mpv-d3562198249d51087e8a23a6fafafd140eaaf935.tar.xz
commands: remove M_PROPERTY_SWITCH from edition property
Instead, communicate the new value range with M_PROPERTY_GET_TYPE. Add M_PROPERTY_GET_WRAP to allow properties to enable cycling instead of stopping at min/max.
Diffstat (limited to 'm_property.c')
-rw-r--r--m_property.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/m_property.c b/m_property.c
index f2899912d6..4952c3a29c 100644
--- a/m_property.c
+++ b/m_property.c
@@ -115,6 +115,7 @@ int m_property_do(const m_option_t *prop_list, const char *name,
return r;
bool wrap = opt.type == &m_option_type_choice ||
opt.type == &m_option_type_flag;
+ do_action(prop_list, name, M_PROPERTY_GET_WRAP, &wrap, ctx);
opt.type->add(&opt, &val, *(double*)arg, wrap);
r = do_action(prop_list, name, M_PROPERTY_SET, &val, ctx);
m_option_free(&opt, &val);