command: fix option-flags property

The sub-path wasn't adjusted, and it worked only in some situations.
This commit is contained in:
wm4 2014-11-08 10:19:17 +01:00
parent f5c2e3d6e2
commit 64f6e88c45
1 changed files with 3 additions and 1 deletions

View File

@ -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;