mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-28 05:33:14 +00:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user