summaryrefslogtreecommitdiffstats
path: root/input
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-05-22 21:28:20 +0200
committerwm4 <wm4@nowhere>2014-05-22 21:28:20 +0200
commitcb2e784c075bed1a3220cf46dc072171f4f632e5 (patch)
tree7af1a7d821fd092d29fba55293ee86c1adf996da /input
parentaca4f9f474bfc7d3775a68d4838b0263e27c377b (diff)
downloadmpv-cb2e784c075bed1a3220cf46dc072171f4f632e5.tar.bz2
mpv-cb2e784c075bed1a3220cf46dc072171f4f632e5.tar.xz
player: give quit_watch_later an exit code argument like quit
The quit command has an optional argument that is used as exit code. Extend that to the quit_watch_later command. Actually, unify the implementations of the two commands. Requested in #798.
Diffstat (limited to 'input')
-rw-r--r--input/cmd_list.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/input/cmd_list.c b/input/cmd_list.c
index 447e49376a..101ffbf0a8 100644
--- a/input/cmd_list.c
+++ b/input/cmd_list.c
@@ -70,7 +70,7 @@ const struct mp_cmd_def mp_cmds[] = {
},
{ MP_CMD_REVERT_SEEK, "revert_seek", },
{ MP_CMD_QUIT, "quit", { OARG_INT(0) } },
- { MP_CMD_QUIT_WATCH_LATER, "quit_watch_later", },
+ { MP_CMD_QUIT_WATCH_LATER, "quit_watch_later", { OARG_INT(0) } },
{ MP_CMD_STOP, "stop", },
{ MP_CMD_FRAME_STEP, "frame_step", .allow_auto_repeat = true },
{ MP_CMD_FRAME_BACK_STEP, "frame_back_step", .allow_auto_repeat = true },