diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-09-03 21:11:41 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-09-03 21:11:41 +0000 |
commit | 527d29313917647e2bcf07bf85d77451dc89e6b7 (patch) | |
tree | 5bf152494ef726c025769e75f87b5c5b7eb84104 /mplayer.c | |
parent | a027248c5f9dcda59867aa0e912d8375e9f0f3d4 (diff) | |
download | mpv-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.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 |