Mercurial > mplayer.hg
changeset 33279:af44c90c8473
Avoid duplicating MP_CMD_QUIT code, even though it currently
does not save much.
author | reimar |
---|---|
date | Wed, 04 May 2011 20:38:06 +0000 |
parents | 679b4e6d506c |
children | d25054d6d2c2 |
files | mplayer.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mplayer.c Wed May 04 20:28:54 2011 +0000 +++ b/mplayer.c Wed May 04 20:38:06 2011 +0000 @@ -1002,7 +1002,7 @@ if((cmd = mp_input_get_cmd(0,0,0)) != NULL) { switch(cmd->id) { case MP_CMD_QUIT: - exit_player_with_rc(EXIT_QUIT, (cmd->nargs > 0)? cmd->args[0].v.i : 0); + run_command(mpctx, cmd); case MP_CMD_PLAY_TREE_STEP: eof = (cmd->args[0].v.i > 0) ? PT_NEXT_ENTRY : PT_PREV_ENTRY; mpctx->play_tree_step = (cmd->args[0].v.i == 0) ? 1 : cmd->args[0].v.i;