disable WSS when 4:3 letterbox or 4:3 panscan is selected and "WSS on 4:3"
[vuplus_dvbapp] / lib / python / Components / AVSwitch.py
index d3224fd..c712a60 100644 (file)
@@ -1,5 +1,6 @@
 from config import config, ConfigSelection, ConfigYesNo, ConfigEnableDisable, ConfigSubsection, ConfigBoolean
 from enigma import eAVSwitch
+from SystemInfo import SystemInfo
 
 class AVSwitch:
        INPUT = { "ENCODER": (0, 4), "SCART": (1, 3), "AUX": (2, 4) }
@@ -49,7 +50,10 @@ class AVSwitch:
                if aspect is None:
                        aspect = self.getAspectRatioSetting()
                if aspect == 0 or aspect == 1: # letterbox or panscan
-                       value = 3 # 4:3_full_format
+                       if not config.av.wss.value:
+                               value = 0 # wss off
+                       else:
+                               value = 3 # 4:3_full_format
                elif aspect == 2: # 16:9
                        if not config.av.wss.value:
                                value = 2 # auto(4:3_off)
@@ -120,3 +124,5 @@ def InitAVSwitch():
        config.av.wss.addNotifier(setWSS)
 
        iAVSwitch.setInput("ENCODER") # init on startup
+       SystemInfo["ScartSwitch"] = eAVSwitch.getInstance().haveScartSwitch()
+