[Mplayer-cvslog] CVS: main mplayer.c,1.786,1.787

Sascha Sommer CVS syncmail at mplayerhq.hu
Thu Sep 16 11:25:59 CEST 2004


CVS change done by Sascha Sommer CVS

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

Modified Files:
	mplayer.c 
Log Message:
make it possible to use the run command from a menu config file, based on a patch by Aurelien Jacobs <aurel at gnuage.org>

Index: mplayer.c
===================================================================
RCS file: /cvsroot/mplayer/main/mplayer.c,v
retrieving revision 1.786
retrieving revision 1.787
diff -u -r1.786 -r1.787
--- mplayer.c	15 Sep 2004 11:26:45 -0000	1.786
+++ mplayer.c	16 Sep 2004 09:25:56 -0000	1.787
@@ -3197,6 +3197,16 @@
     case MP_CMD_GET_PERCENT_POS : {
 	mp_msg(MSGT_GLOBAL,MSGL_INFO,"ANS_PERCENT_POSITION=%ld\n", demuxer_get_percent_pos(demuxer));
     } break;
+#ifdef HAVE_MENU
+    case MP_CMD_CRUN : {
+#ifndef __MINGW32__
+        if(!fork()) {
+          execl("/bin/sh","sh","-c",cmd->args[0].v.s,NULL);
+          exit(0);
+        }
+#endif
+    } break;
+#endif
 
 #ifdef USE_DVDNAV
     case MP_CMD_DVDNAV_EVENT: {




More information about the MPlayer-cvslog mailing list