summaryrefslogtreecommitdiffstats
path: root/command.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2012-09-15 02:20:25 +0200
committerwm4 <wm4@nowhere>2012-10-12 10:10:30 +0200
commita59eee489318d406497eb5fb8a95d7e23d5eee1f (patch)
treeae8a59a341aad3e97303dec6e3dc7ff593032532 /command.c
parenta749c614375107a09e5877f6bb654133c7947672 (diff)
downloadmpv-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.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/command.c b/command.c
index 9ee184ed04..708d4b8d2d 100644
--- a/command.c
+++ b/command.c
@@ -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,