From 49c553dc7fbeb3e62a046cb8d51aec3ab90a83cc Mon Sep 17 00:00:00 2001 From: faust3 Date: Wed, 15 Sep 2004 09:29:10 +0000 Subject: quit slave mode command now accepts an exit value, patch by Aurelien Jacobs git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13339 b3059339-0415-0410-9bf9-f77b7e298cf2 --- mplayer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mplayer.c') diff --git a/mplayer.c b/mplayer.c index 22d43a39f0..25a4404c76 100644 --- a/mplayer.c +++ b/mplayer.c @@ -614,7 +614,7 @@ static int libmpdemux_was_interrupted(int eof) { if((cmd = mp_input_get_cmd(0,0)) != NULL) { switch(cmd->id) { case MP_CMD_QUIT: - exit_player_with_rc(MSGTR_Exit_quit, 0); + exit_player_with_rc(MSGTR_Exit_quit, (cmd->nargs > 0)? cmd->args[0].v.i : 0); case MP_CMD_PLAY_TREE_STEP: { eof = (cmd->args[0].v.i > 0) ? PT_NEXT_ENTRY : PT_PREV_ENTRY; } break; @@ -2541,7 +2541,7 @@ if (stream->type==STREAMTYPE_DVDNAV && dvd_nav_still) brk_cmd = 1; } break; case MP_CMD_QUIT : { - exit_player_with_rc(MSGTR_Exit_quit, 0); + exit_player_with_rc(MSGTR_Exit_quit, (cmd->nargs > 0)? cmd->args[0].v.i : 0); } case MP_CMD_GRAB_FRAMES : { grab_frames=2; -- cgit v1.2.3