aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Plugins/SystemPlugins/Videomode
diff options
context:
space:
mode:
authorFraxinas <andreas.frisch@multimedia-labs.de>2009-10-07 00:50:36 +0200
committerFraxinas <andreas.frisch@multimedia-labs.de>2009-10-07 00:50:36 +0200
commit0b06818dbb088f312e4b7c3099bde8adbb301124 (patch)
tree5a5748b2d33606e91b90cdf228bac50d5fc9fdee /lib/python/Plugins/SystemPlugins/Videomode
parent7e064d56b3b1fc640f3aff218840f537c8119e64 (diff)
parent56e21b732a65d9b548f77167230223bb586e82c2 (diff)
downloadenigma2-0b06818dbb088f312e4b7c3099bde8adbb301124.tar.gz
enigma2-0b06818dbb088f312e4b7c3099bde8adbb301124.zip
Merge branch 'master' of git.opendreambox.org:/git/enigma2
Diffstat (limited to 'lib/python/Plugins/SystemPlugins/Videomode')
-rw-r--r--lib/python/Plugins/SystemPlugins/Videomode/VideoWizard.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/python/Plugins/SystemPlugins/Videomode/VideoWizard.py b/lib/python/Plugins/SystemPlugins/Videomode/VideoWizard.py
index bceb6bc7..3759c21a 100644
--- a/lib/python/Plugins/SystemPlugins/Videomode/VideoWizard.py
+++ b/lib/python/Plugins/SystemPlugins/Videomode/VideoWizard.py
@@ -105,8 +105,9 @@ class VideoWizard(WizardLanguage, Rc):
modeList = self.hw.getModeList(self.selection)
print "modeList:", modeList
self.port = port
- ratesList = self.listRates(modeList[0][0])
- self.hw.setMode(port = port, mode = modeList[0][0], rate = ratesList[0][0])
+ if (len(modeList) > 0):
+ ratesList = self.listRates(modeList[0][0])
+ self.hw.setMode(port = port, mode = modeList[0][0], rate = ratesList[0][0])
def listModes(self):
list = []