diff options
author | wm4 <wm4@nowhere> | 2012-09-15 02:20:25 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2012-10-12 10:10:30 +0200 |
commit | a59eee489318d406497eb5fb8a95d7e23d5eee1f (patch) | |
tree | ae8a59a341aad3e97303dec6e3dc7ff593032532 /command.c | |
parent | a749c614375107a09e5877f6bb654133c7947672 (diff) | |
download | mpv-a59eee489318d406497eb5fb8a95d7e23d5eee1f.tar.bz2 mpv-a59eee489318d406497eb5fb8a95d7e23d5eee1f.tar.xz |
commands: remove third parameter for "switch"
This could change the direction (i.e. invoke STEP_PROPERTY_DOWN), but
you can just pass a negative value as second argument instead.
Diffstat (limited to 'command.c')
-rw-r--r-- | command.c | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -2167,10 +2167,7 @@ void run_command(MPContext *mpctx, mp_cmd_t *cmd) "Ignoring step size stepping property '%s'.\n", cmd->args[0].v.s); } - r = mp_property_do(cmd->args[0].v.s, - cmd->args[2].v.i < 0 ? - M_PROPERTY_STEP_DOWN : M_PROPERTY_STEP_UP, - arg, mpctx); + r = mp_property_do(cmd->args[0].v.s, M_PROPERTY_STEP_UP, arg, mpctx); step_prop_err: if (r == M_PROPERTY_UNKNOWN) mp_msg(MSGT_CPLAYER, MSGL_WARN, |