X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/bf976ae7302a8f3e2b6ecde2336a9cbef890720d..e06c6d202696d83a3017861fc690ee3d75750f13:/lib/python/Components/VideoWindow.py diff --git a/lib/python/Components/VideoWindow.py b/lib/python/Components/VideoWindow.py index db247980..31190d95 100644 --- a/lib/python/Components/VideoWindow.py +++ b/lib/python/Components/VideoWindow.py @@ -2,11 +2,11 @@ from GUIComponent import GUIComponent from enigma import eVideoWidget class VideoWindow(GUIComponent): - def __init__(self): + def __init__(self, decoder = 1): GUIComponent.__init__(self) - - def GUIcreate(self, parent): - self.instance = eVideoWidget(parent) + self.decoder = decoder - def GUIdelete(self): - self.instance = None + GUI_WIDGET = eVideoWidget + + def postWidgetCreate(self, instance): + instance.setDecoder(self.decoder)