[Mplayer-cvslog] CVS: main mplayer.c,1.783,1.784

Sascha Sommer CVS syncmail at mplayerhq.hu
Wed Sep 15 11:29:12 CEST 2004


CVS change done by Sascha Sommer CVS

Update of /cvsroot/mplayer/main
In directory mail:/var2/tmp/cvs-serv20355

Modified Files:
	mplayer.c 
Log Message:
quit slave mode command now accepts an exit value, patch by Aurelien Jacobs <aurel at gnuage.org>

Index: mplayer.c
===================================================================
RCS file: /cvsroot/mplayer/main/mplayer.c,v
retrieving revision 1.783
retrieving revision 1.784
diff -u -r1.783 -r1.784
--- mplayer.c	9 Sep 2004 19:24:12 -0000	1.783
+++ mplayer.c	15 Sep 2004 09:29:10 -0000	1.784
@@ -614,7 +614,7 @@
   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 @@
       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;




More information about the MPlayer-cvslog mailing list