diff options
| author | Stefan Pluecken <stefan.pluecken@multimedia-labs.de> | 2006-01-15 15:36:07 +0000 |
|---|---|---|
| committer | Stefan Pluecken <stefan.pluecken@multimedia-labs.de> | 2006-01-15 15:36:07 +0000 |
| commit | 35b4469fbb9f5bf80bba60c29916057aaa3c5bd0 (patch) | |
| tree | 3b3a38e315e231c5804a76df1be51d03c3e5411b /lib/python | |
| parent | 9b18b542ccfcc478759cc1704a69aeca81a53a15 (diff) | |
| download | enigma2-35b4469fbb9f5bf80bba60c29916057aaa3c5bd0.tar.gz enigma2-35b4469fbb9f5bf80bba60c29916057aaa3c5bd0.zip | |
use textual representation of configElement for comparison for more readability and flexibility
Diffstat (limited to 'lib/python')
| -rw-r--r-- | lib/python/Components/AVSwitch.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/python/Components/AVSwitch.py b/lib/python/Components/AVSwitch.py index f6fda3b8..0b285cfd 100644 --- a/lib/python/Components/AVSwitch.py +++ b/lib/python/Components/AVSwitch.py @@ -17,11 +17,11 @@ class AVSwitch: eAVSwitch.getInstance().setVideomode(value) def setWSS(self, value): - if value == 0: + if currentConfigSelectionElement(config.av.wss) == "off": writevalue = "off" - elif value == 1: + elif currentConfigSelectionElement(config.av.wss) == "auto": writevalue = "auto" - elif value == 2: + elif currentConfigSelectionElement(config.av.wss) == "auto_no4_3": writevalue = "auto(4:3_off)" try: file = open("/proc/stb/denc/0/wss", "w") |
