summaryrefslogtreecommitdiffstats
path: root/mplayer.c
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-09-03 21:11:41 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-09-03 21:11:41 +0000
commit527d29313917647e2bcf07bf85d77451dc89e6b7 (patch)
tree5bf152494ef726c025769e75f87b5c5b7eb84104 /mplayer.c
parenta027248c5f9dcda59867aa0e912d8375e9f0f3d4 (diff)
downloadmpv-527d29313917647e2bcf07bf85d77451dc89e6b7.tar.bz2
mpv-527d29313917647e2bcf07bf85d77451dc89e6b7.tar.xz
Do not reset user-enabled mute on EOF, but only on exit.
Make behaviour more consistent with general volume control. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24337 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mplayer.c')
-rw-r--r--mplayer.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mplayer.c b/mplayer.c
index 7c8ce6356f..c0ca8d59fe 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -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