[MPlayer-cvslog] r33366 - trunk/mplayer.c

reimar subversion at mplayerhq.hu
Wed May 4 22:38:06 CEST 2011


Author: reimar
Date: Wed May  4 22:38:06 2011
New Revision: 33366

Log:
Avoid duplicating MP_CMD_QUIT code, even though it currently
does not save much.

Modified:
   trunk/mplayer.c

Modified: trunk/mplayer.c
==============================================================================
--- trunk/mplayer.c	Wed May  4 22:28:54 2011	(r33365)
+++ trunk/mplayer.c	Wed May  4 22:38:06 2011	(r33366)
@@ -1002,7 +1002,7 @@ static int libmpdemux_was_interrupted(in
   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;


More information about the MPlayer-cvslog mailing list