From 64f6e88c454d4c63b3bc45cf5f7d01d5006e67f0 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 8 Nov 2014 10:19:17 +0100 Subject: command: fix option-flags property The sub-path wasn't adjusted, and it worked only in some situations. --- player/command.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/player/command.c b/player/command.c index 198ed64242..01988a8251 100644 --- a/player/command.c +++ b/player/command.c @@ -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; -- cgit v1.2.3