comparison mplayer.c @ 1694:0def229bd8bc

GUI support (--enable-gui)
author arpi
date Sat, 25 Aug 2001 21:05:23 +0000
parents 09f9297d2ee6
children a4e0211455d8
comparison
equal deleted inserted replaced
1693:d237c5d4b216 1694:0def229bd8bc
460 460
461 mp_msg_init(MSGL_STATUS); 461 mp_msg_init(MSGL_STATUS);
462 462
463 mp_msg(MSGT_CPLAYER,MSGL_INFO,"%s",banner_text); 463 mp_msg(MSGT_CPLAYER,MSGL_INFO,"%s",banner_text);
464 464
465 #ifdef HAVE_NEW_GUI
466 // this one segfaults if running 'mplayer' (without path containing '/')
467 // if ( !strcmp( strrchr( argv[0],'/' ),"/gmplayer" ) ) appInit( argc,argv,envp );
468 if ( strstr( argv[0],"gmplayer" ) ) appInit( argc,argv,envp );
469
470 #endif
471
472
465 #ifdef HAVE_GUI 473 #ifdef HAVE_GUI
466 if ( nogui ) { 474 if ( nogui ) {
467 #endif 475 #endif
468 476
469 parse_cfgfiles(); 477 parse_cfgfiles();
557 #endif 565 #endif
558 566
559 #ifdef USE_TERMCAP 567 #ifdef USE_TERMCAP
560 load_termcap(NULL); // load key-codes 568 load_termcap(NULL); // load key-codes
561 #endif 569 #endif
570
562 571
563 //========= Catch terminate signals: ================ 572 //========= Catch terminate signals: ================
564 // terminate requests: 573 // terminate requests:
565 signal(SIGTERM,exit_sighandler); // kill 574 signal(SIGTERM,exit_sighandler); // kill
566 signal(SIGHUP,exit_sighandler); // kill -HUP / xterm closed 575 signal(SIGHUP,exit_sighandler); // kill -HUP / xterm closed