comparison mplayer.c @ 30518:654cad7ea876

Rename exit_reason_t enum to exit_reason and do not typedef it. The _t namespace is reserved for POSIX; the typedef is pointless obfuscation.
author diego
date Sun, 14 Feb 2010 11:02:05 +0000
parents a70589785d97
children c5d1693acb35
comparison
equal deleted inserted replaced
30517:290e478b07cd 30518:654cad7ea876
689 } 689 }
690 690
691 current_module=NULL; 691 current_module=NULL;
692 } 692 }
693 693
694 void exit_player_with_rc(exit_reason_t how, int rc){ 694 void exit_player_with_rc(enum exit_reason how, int rc)
695 {
695 696
696 if (mpctx->user_muted && !mpctx->edl_muted) mixer_mute(&mpctx->mixer); 697 if (mpctx->user_muted && !mpctx->edl_muted) mixer_mute(&mpctx->mixer);
697 uninit_player(INITIALIZED_ALL); 698 uninit_player(INITIALIZED_ALL);
698 #if defined(__MINGW32__) || defined(__CYGWIN__) 699 #if defined(__MINGW32__) || defined(__CYGWIN__)
699 timeEndPeriod(1); 700 timeEndPeriod(1);
756 mp_msg(MSGT_CPLAYER,MSGL_DBG2,"max framesize was %d bytes\n",max_framesize); 757 mp_msg(MSGT_CPLAYER,MSGL_DBG2,"max framesize was %d bytes\n",max_framesize);
757 758
758 exit(rc); 759 exit(rc);
759 } 760 }
760 761
761 void exit_player(exit_reason_t how){ 762 void exit_player(enum exit_reason how)
763 {
762 exit_player_with_rc(how, 1); 764 exit_player_with_rc(how, 1);
763 } 765 }
764 766
765 #ifndef __MINGW32__ 767 #ifndef __MINGW32__
766 static void child_sighandler(int x){ 768 static void child_sighandler(int x){