reset the colorformat after av input switch to workaround a bug in the avs driver
authorStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Tue, 3 Jan 2006 11:29:26 +0000 (11:29 +0000)
committerStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Tue, 3 Jan 2006 11:29:26 +0000 (11:29 +0000)
lib/python/Components/AVSwitch.py

index 22d24df..2c8c7db 100644 (file)
@@ -14,7 +14,6 @@ class AVSwitch:
                eAVSwitch.getInstance().setAspectRatio(value)
 
        def setSystem(self, value):
-               print "system:" + str(value)
                eAVSwitch.getInstance().setVideomode(value)
 
        def setWSS(self, value):
@@ -23,6 +22,8 @@ class AVSwitch:
        
        def setInput(self, input):
                eAVSwitch.getInstance().setInput(self.INPUT[input])
+               # FIXME why do we have to reset the colorformat? bug in avs-driver?
+               eAVSwitch.getInstance().setColorFormat(config.av.colorformat.value)
 
 def InitAVSwitch():
        config.av = ConfigSubsection();