summaryrefslogtreecommitdiffstats
path: root/options
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-04-15 22:10:19 +0200
committerwm4 <wm4@nowhere>2016-04-15 22:10:19 +0200
commit8e96e049999ccc4acd88ea43a252bf815464a682 (patch)
tree8d4860042ac24a3d6760824cb60f06d87a7d7fc7 /options
parent9db1b7a001786ad5d4ca35decadd29189fefa8dd (diff)
downloadmpv-8e96e049999ccc4acd88ea43a252bf815464a682.tar.bz2
mpv-8e96e049999ccc4acd88ea43a252bf815464a682.tar.xz
command: fix cycling certain properties
Commit a9bd4535 generally changed properties are set to string values. This actually broke the fallback for non-string properties, because the set string action was redirected directly to the property, instead of the generic handler and its fallback code.
Diffstat (limited to 'options')
-rw-r--r--options/m_property.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/options/m_property.c b/options/m_property.c
index de2361b868..d0579768c6 100644
--- a/options/m_property.c
+++ b/options/m_property.c
@@ -105,7 +105,7 @@ int m_property_do(struct mp_log *log, const struct m_property *prop_list,
}
case M_PROPERTY_SET_STRING: {
struct mpv_node node = { .format = MPV_FORMAT_STRING, .u.string = arg };
- return do_action(prop_list, name, M_PROPERTY_SET_NODE, &node, ctx);
+ return m_property_do(log, prop_list, name, M_PROPERTY_SET_NODE, &node, ctx);
}
case M_PROPERTY_SWITCH: {
if (!log)