aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Plugins/SystemPlugins/Videomode/VideoHardware.py
diff options
context:
space:
mode:
authorMladen Horvat <acid-burn@opendreambox.org>2011-04-13 16:17:43 +0200
committerMladen Horvat <acid-burn@opendreambox.org>2011-04-13 16:17:43 +0200
commit8a21c8eebc037850431ac627061e46e48e93a0ec (patch)
tree16ea09f5e26546a98106bbf044575894037aa6e5 /lib/python/Plugins/SystemPlugins/Videomode/VideoHardware.py
parentc3c412e8765520205b7cf8413ddf8abca74f1bc3 (diff)
parent348cf0e4d7fa1e615635984c9325fc0e8fa4e72b (diff)
downloadenigma2-8a21c8eebc037850431ac627061e46e48e93a0ec.tar.gz
enigma2-8a21c8eebc037850431ac627061e46e48e93a0ec.zip
Merge branch 'master' of git.opendreambox.org:/git/enigma2 into acid-burn/network_changes_next
Diffstat (limited to 'lib/python/Plugins/SystemPlugins/Videomode/VideoHardware.py')
-rw-r--r--lib/python/Plugins/SystemPlugins/Videomode/VideoHardware.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/python/Plugins/SystemPlugins/Videomode/VideoHardware.py b/lib/python/Plugins/SystemPlugins/Videomode/VideoHardware.py
index dc4e8c56..6ecbfd49 100644
--- a/lib/python/Plugins/SystemPlugins/Videomode/VideoHardware.py
+++ b/lib/python/Plugins/SystemPlugins/Videomode/VideoHardware.py
@@ -196,10 +196,12 @@ class VideoHardware:
print "saveMode", port, mode, rate
config.av.videoport.value = port
config.av.videoport.save()
- config.av.videomode[port].value = mode
- config.av.videomode[port].save()
- config.av.videorate[mode].value = rate
- config.av.videorate[mode].save()
+ if port in config.av.videomode:
+ config.av.videomode[port].value = mode
+ config.av.videomode[port].save()
+ if mode in config.av.videorate:
+ config.av.videorate[mode].value = rate
+ config.av.videorate[mode].save()
def isPortAvailable(self, port):
# fixme