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.
This commit is contained in:
wm4 2016-04-15 22:10:19 +02:00
parent 9db1b7a001
commit 8e96e04999
1 changed files with 1 additions and 1 deletions

View File

@ -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)