mirror of
https://github.com/mpv-player/mpv
synced 2025-02-17 21:27:08 +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:
parent
9db1b7a001
commit
8e96e04999
@ -105,7 +105,7 @@ int m_property_do(struct mp_log *log, const struct m_property *prop_list,
|
|||||||
}
|
}
|
||||||
case M_PROPERTY_SET_STRING: {
|
case M_PROPERTY_SET_STRING: {
|
||||||
struct mpv_node node = { .format = MPV_FORMAT_STRING, .u.string = arg };
|
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: {
|
case M_PROPERTY_SWITCH: {
|
||||||
if (!log)
|
if (!log)
|
||||||
|
Loading…
Reference in New Issue
Block a user