X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/96ac5ba0afb7fb1ea96aee24fc497e76dc2c652b..1afe4083af2355924c810b478f0655d695e50c45:/lib/python/Plugins/SystemPlugins/Videomode/VideoWizard.py 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 = []