From 4a4f788a68a0ca73dcc3eed6ccd0533be4912b20 Mon Sep 17 00:00:00 2001 From: Philip Sequeira Date: Sat, 11 Jul 2015 14:07:58 -0400 Subject: player: use exit code 0 by default for quit, 4 for signals, etc. Default key bindings in encoding mode also use code 4, because scripts will probably want to fail if encoding is aborted (leaving an incomplete file). --- input/cmd_list.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'input/cmd_list.c') diff --git a/input/cmd_list.c b/input/cmd_list.c index 59c717ed4a..53e25cc41c 100644 --- a/input/cmd_list.c +++ b/input/cmd_list.c @@ -76,8 +76,8 @@ const struct mp_cmd_def mp_cmds[] = { { MP_CMD_REVERT_SEEK, "revert-seek", { OARG_FLAGS(0, ({"mark", 1})), }}, - { MP_CMD_QUIT, "quit", { OARG_INT(4) } }, - { MP_CMD_QUIT_WATCH_LATER, "quit-watch-later", { OARG_INT(4) } }, + { MP_CMD_QUIT, "quit", { OARG_INT(0) } }, + { 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, .on_updown = true }, -- cgit v1.2.3