From 934f76224a6e819c8635227d086bce71460ddc90 Mon Sep 17 00:00:00 2001 From: kriss Date: Mon, 28 Jul 2008 15:18:11 +0000 Subject: [PATCH] BUGFIX: Fixing issue causing SettingsGUI not to startup on GTA02 - see Ticket http://neo1973-germany.de/ticket/4 - Thanks to Birdack for reporting and submitting the patch! git-svn-id: http://www.neo1973-germany.de/svn@86 46df4e5c-bc4e-4628-a0fc-830ba316316d --- SettingsGUI/trunk/src/settingsgui/AudioPanel.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/SettingsGUI/trunk/src/settingsgui/AudioPanel.py b/SettingsGUI/trunk/src/settingsgui/AudioPanel.py index 3e85efa..dd9b408 100644 --- a/SettingsGUI/trunk/src/settingsgui/AudioPanel.py +++ b/SettingsGUI/trunk/src/settingsgui/AudioPanel.py @@ -95,8 +95,12 @@ class AudioPanel(gtk.VBox): amix_out = amix_ostream.readline() amix_out = amix_ostream.readline() amix_out = amix_ostream.readline() - if amix_out.find("value") >= 0: - return int(amix_out.split('=')[1]) + if amix_out.find("INTEGER") >=0: + amix_out = amix_ostream.readline() + if amix_out.find("value") >= 0: + return int((amix_out.split('=')[1]).split(',')[0]) + #return int(amix_out.split('=')[1]) + return 0; return 0; def get_max_volume(self, chan_id):