diff mplayer.c @ 1694:0def229bd8bc

GUI support (--enable-gui)
author arpi
date Sat, 25 Aug 2001 21:05:23 +0000
parents 09f9297d2ee6
children a4e0211455d8
line wrap: on
line diff
--- a/mplayer.c	Sat Aug 25 21:04:29 2001 +0000
+++ b/mplayer.c	Sat Aug 25 21:05:23 2001 +0000
@@ -462,6 +462,14 @@
 
   mp_msg(MSGT_CPLAYER,MSGL_INFO,"%s",banner_text);
 
+#ifdef HAVE_NEW_GUI
+//  this one segfaults if running 'mplayer' (without path containing '/')
+//  if ( !strcmp( strrchr( argv[0],'/' ),"/gmplayer" ) ) appInit( argc,argv,envp );
+  if ( strstr( argv[0],"gmplayer" ) ) appInit( argc,argv,envp );
+
+#endif
+
+
 #ifdef HAVE_GUI
   if ( nogui ) {
 #endif
@@ -560,6 +568,7 @@
   load_termcap(NULL); // load key-codes
 #endif
 
+
   //========= Catch terminate signals: ================
   // terminate requests:
   signal(SIGTERM,exit_sighandler); // kill