mirror of https://github.com/mpv-player/mpv
command: fix option-flags property
The sub-path wasn't adjusted, and it worked only in some situations.
This commit is contained in:
parent
f5c2e3d6e2
commit
64f6e88c45
|
@ -3020,7 +3020,9 @@ static int mp_property_option_flags(void *ctx, struct m_property *prop,
|
|||
{0}
|
||||
};
|
||||
|
||||
return m_property_read_sub(props, ka->action, ka->arg);
|
||||
struct m_property_action_arg next_ka = *ka;
|
||||
next_ka.key = rem;
|
||||
return m_property_read_sub(props, M_PROPERTY_KEY_ACTION, &next_ka);
|
||||
}
|
||||
}
|
||||
return M_PROPERTY_NOT_IMPLEMENTED;
|
||||
|
|
Loading…
Reference in New Issue