Mercurial > mplayer.hg
diff 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 |
line wrap: on
line diff
--- a/mplayer.c Sun Feb 14 10:58:01 2010 +0000 +++ b/mplayer.c Sun Feb 14 11:02:05 2010 +0000 @@ -691,7 +691,8 @@ current_module=NULL; } -void exit_player_with_rc(exit_reason_t how, int rc){ +void exit_player_with_rc(enum exit_reason how, int rc) +{ if (mpctx->user_muted && !mpctx->edl_muted) mixer_mute(&mpctx->mixer); uninit_player(INITIALIZED_ALL); @@ -758,7 +759,8 @@ exit(rc); } -void exit_player(exit_reason_t how){ +void exit_player(enum exit_reason how) +{ exit_player_with_rc(how, 1); }