[MPlayer-cvslog] r37050 - trunk/gui/interface.c
ib
subversion at mplayerhq.hu
Sun Mar 23 13:42:53 CET 2014
Author: ib
Date: Sun Mar 23 13:42:53 2014
New Revision: 37050
Log:
Disable balance control if number of audio channels is too small.
Modified:
trunk/gui/interface.c
Modified: trunk/gui/interface.c
==============================================================================
--- trunk/gui/interface.c Sun Mar 23 13:34:31 2014 (r37049)
+++ trunk/gui/interface.c Sun Mar 23 13:42:53 2014 (r37050)
@@ -700,6 +700,9 @@ int gui(int what, void *data)
guiInfo.AudioChannels = sh_audio ? sh_audio->channels : 0;
+ if (guiInfo.AudioChannels < 2)
+ btnSet(evSetBalance, btnDisabled);
+
if (sh_audio && !guiInfo.sh_video) {
guiInfo.VideoWindow = False;
guiInfo.VideoWidth = 0;
@@ -784,6 +787,8 @@ int gui(int what, void *data)
guiInfo.sh_video = NULL;
+ btnSet(evSetBalance, btnReleased);
+
uiEvent(ivRedraw, True);
if (guiInfo.Playing) {
More information about the MPlayer-cvslog
mailing list