VideoHardware: only allow Scart if modes exist
authorMirakels <mirakels@openpli.org>
Fri, 8 Jan 2016 12:54:41 +0000 (13:54 +0100)
committerMirakels <mirakels@openpli.org>
Fri, 8 Jan 2016 12:54:41 +0000 (13:54 +0100)
lib/python/Plugins/SystemPlugins/Videomode/VideoHardware.py

index d3a8105..6390b4e 100644 (file)
@@ -107,6 +107,9 @@ class VideoHardware:
                if self.modes.has_key("DVI-PC") and not self.getModeList("DVI-PC"):
                        print "[VideoHardware] remove DVI-PC because of not existing modes"
                        del self.modes["DVI-PC"]
+               if self.modes.has_key("Scart") and not self.getModeList("Scart"):
+                       print "[VideoHardware] remove Scart because of not existing modes"
+                       del self.modes["Scart"]
 
                self.createConfig()
                self.readPreferredModes()