[MPlayer-cvslog] r24337 - trunk/mplayer.c

reimar subversion at mplayerhq.hu
Mon Sep 3 23:11:41 CEST 2007


Author: reimar
Date: Mon Sep  3 23:11:41 2007
New Revision: 24337

Log:
Do not reset user-enabled mute on EOF, but only on exit.
Make behaviour more consistent with general volume control.


Modified:
   trunk/mplayer.c

Modified: trunk/mplayer.c
==============================================================================
--- trunk/mplayer.c	(original)
+++ trunk/mplayer.c	Mon Sep  3 23:11:41 2007
@@ -642,7 +642,7 @@ void uninit_player(unsigned int mask){
   if(mask&INITED_AO){
     inited_flags&=~INITED_AO;
     current_module="uninit_ao";
-    if (mpctx->user_muted | mpctx->edl_muted) mixer_mute(&mpctx->mixer); 
+    if (mpctx->edl_muted) mixer_mute(&mpctx->mixer); 
     mpctx->audio_out->uninit(mpctx->eof?0:1); mpctx->audio_out=NULL;
   }
 
@@ -665,6 +665,7 @@ void uninit_player(unsigned int mask){
 
 void exit_player_with_rc(const char* how, int rc){
 
+  if (mpctx->user_muted && !mpctx->edl_muted) mixer_mute(&mpctx->mixer); 
   uninit_player(INITED_ALL);
 #ifdef HAVE_X11
 #ifdef HAVE_NEW_GUI



More information about the MPlayer-cvslog mailing list