summaryrefslogtreecommitdiffstats
path: root/mplayer.c
diff options
context:
space:
mode:
authordiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-02-14 11:02:05 +0000
committerdiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-02-14 11:02:05 +0000
commit8a67379319806dedf421f5bf217091084baab573 (patch)
treed0e2c3ace20f0056c9061297ed439ad80634fae8 /mplayer.c
parent8c21a0fd736a25e6ee2477a76d4fdf4474f6bd1e (diff)
downloadmpv-8a67379319806dedf421f5bf217091084baab573.tar.bz2
mpv-8a67379319806dedf421f5bf217091084baab573.tar.xz
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. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30560 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mplayer.c')
-rw-r--r--mplayer.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/mplayer.c b/mplayer.c
index fa88002344..7637a75658 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -691,7 +691,8 @@ void uninit_player(unsigned int mask){
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 @@ void exit_player_with_rc(exit_reason_t how, int rc){
exit(rc);
}
-void exit_player(exit_reason_t how){
+void exit_player(enum exit_reason how)
+{
exit_player_with_rc(how, 1);
}