X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/67b53c1cb06988394c35a6e965c99b72b67fe1be..54042f13aaa98b655f0dfa907ef326430ec65d39:/lib/python/Components/AVSwitch.py diff --git a/lib/python/Components/AVSwitch.py b/lib/python/Components/AVSwitch.py index d3224fd7..c712a60e 100644 --- a/lib/python/Components/AVSwitch.py +++ b/lib/python/Components/AVSwitch.py @@ -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() +