make VideoWindow usable for main decoder too
[enigma2.git] / lib / python / Components / VideoWindow.py
index 88cd33f98668996030fa1408677c8258357c75bf..31190d95046b19c48c1dbddf7e1a2dfc933099f1 100644 (file)
@@ -2,7 +2,11 @@ from GUIComponent import GUIComponent
 from enigma import eVideoWidget
 
 class VideoWindow(GUIComponent):
-       def __init__(self):
+       def __init__(self, decoder = 1):
                GUIComponent.__init__(self)
+               self.decoder = decoder
 
        GUI_WIDGET = eVideoWidget
+
+       def postWidgetCreate(self, instance):
+               instance.setDecoder(self.decoder)