Mercurial > mplayer.hg
changeset 36972:a56291ee9bf9
Disable volume control for AudioPassthrough.
author | ib |
---|---|
date | Tue, 25 Mar 2014 13:07:24 +0000 |
parents | fedc8214f8b1 |
children | 79fe279d3bac |
files | gui/interface.c |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/gui/interface.c Tue Mar 25 13:01:15 2014 +0000 +++ b/gui/interface.c Tue Mar 25 13:07:24 2014 +0000 @@ -709,6 +709,8 @@ guiInfo.AudioChannels = sh_audio ? sh_audio->channels : 0; + if (guiInfo.AudioPassthrough) + btnSet(evSetVolume, btnDisabled); if (guiInfo.AudioChannels < 2 || guiInfo.AudioPassthrough) btnSet(evSetBalance, btnDisabled); @@ -805,6 +807,7 @@ guiInfo.sh_video = NULL; + btnSet(evSetVolume, btnReleased); btnSet(evSetBalance, btnReleased); uiEvent(ivRedraw, True);