comparison mplayer.c @ 1803:8e0b52f2c215

stop fixed
author arpi
date Fri, 31 Aug 2001 17:59:10 +0000
parents 82e77faa7341
children e37f7103df91
comparison
equal deleted inserted replaced
1802:82e77faa7341 1803:8e0b52f2c215
541 541
542 // It's time to init the GUI code: (and fork() the GTK process) 542 // It's time to init the GUI code: (and fork() the GTK process)
543 #ifdef HAVE_NEW_GUI 543 #ifdef HAVE_NEW_GUI
544 if(use_gui){ 544 if(use_gui){
545 appInit( argc,argv,envp,(void*)mDisplay ); 545 appInit( argc,argv,envp,(void*)mDisplay );
546 mplShMem->Playing= (gui_no_filename) ? 0 : 1;
546 } 547 }
547 #endif 548 #endif
548 549
549 #ifdef HAVE_LIRC 550 #ifdef HAVE_LIRC
550 lirc_mp_setup(); 551 lirc_mp_setup();
568 signal(SIGSEGV,exit_sighandler); // segfault 569 signal(SIGSEGV,exit_sighandler); // segfault
569 signal(SIGILL,exit_sighandler); // illegal instruction 570 signal(SIGILL,exit_sighandler); // illegal instruction
570 signal(SIGFPE,exit_sighandler); // floating point exc. 571 signal(SIGFPE,exit_sighandler); // floating point exc.
571 signal(SIGABRT,exit_sighandler); // abort() 572 signal(SIGABRT,exit_sighandler); // abort()
572 573
573
574 // ******************* Now, let's see the per-file stuff ******************** 574 // ******************* Now, let's see the per-file stuff ********************
575 575
576 curr_filename=0; 576 curr_filename=0;
577 play_next_file: 577 play_next_file:
578 filename=(num_filenames>0)?filenames[curr_filename]:NULL; 578 filename=(num_filenames>0)?filenames[curr_filename]:NULL;
579 579
580 #ifdef HAVE_NEW_GUI 580 #ifdef HAVE_NEW_GUI
581 if ( use_gui ) { 581 if ( use_gui ) {
582 if(filename) strcpy( mplShMem->Filename,filename ); 582 if(filename) strcpy( mplShMem->Filename,filename );
583 mplShMem->Playing= (gui_no_filename) ? 0 : 1; 583 // mplShMem->Playing= (gui_no_filename) ? 0 : 1;
584 while(mplShMem->Playing!=1){ 584 while(mplShMem->Playing!=1){
585 usleep(20000); 585 usleep(20000);
586 EventHandling(); 586 EventHandling();
587 } 587 }
588 if(gui_no_filename){ 588 if(gui_no_filename){