[MPlayer-cvslog] r37068 - trunk/gui/interface.c

ib subversion at mplayerhq.hu
Tue Mar 25 14:07:24 CET 2014


Author: ib
Date: Tue Mar 25 14:07:24 2014
New Revision: 37068

Log:
Disable volume control for AudioPassthrough.

Modified:
   trunk/gui/interface.c

Modified: trunk/gui/interface.c
==============================================================================
--- trunk/gui/interface.c	Tue Mar 25 14:01:15 2014	(r37067)
+++ trunk/gui/interface.c	Tue Mar 25 14:07:24 2014	(r37068)
@@ -709,6 +709,8 @@ int gui(int what, void *data)
 
         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 @@ int gui(int what, void *data)
 
         guiInfo.sh_video = NULL;
 
+        btnSet(evSetVolume, btnReleased);
         btnSet(evSetBalance, btnReleased);
 
         uiEvent(ivRedraw, True);


More information about the MPlayer-cvslog mailing list