summaryrefslogtreecommitdiffstats
path: root/player/command.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-11-08 10:19:17 +0100
committerwm4 <wm4@nowhere>2014-11-08 10:19:17 +0100
commit64f6e88c454d4c63b3bc45cf5f7d01d5006e67f0 (patch)
tree13aeba8dcd5d5aee598d97143592cdd36236bf06 /player/command.c
parentf5c2e3d6e2372546c46dd32ceab1a5c41e19465b (diff)
downloadmpv-64f6e88c454d4c63b3bc45cf5f7d01d5006e67f0.tar.bz2
mpv-64f6e88c454d4c63b3bc45cf5f7d01d5006e67f0.tar.xz
command: fix option-flags property
The sub-path wasn't adjusted, and it worked only in some situations.
Diffstat (limited to 'player/command.c')
-rw-r--r--player/command.c4
1 files changed, 3 insertions, 1 deletions
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;