diff options
| author | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2006-11-08 21:17:39 +0000 |
|---|---|---|
| committer | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2006-11-08 21:17:39 +0000 |
| commit | 1a07a37fe49d9d3e039e79657ce226d6af1280f7 (patch) | |
| tree | b5a715d0ef82210fe2fb70bd27c9cea53a7fa646 /lib/python | |
| parent | 9bef763b47b5e5a273ce6eed4583004690571fcf (diff) | |
| download | enigma2-1a07a37fe49d9d3e039e79657ce226d6af1280f7.tar.gz enigma2-1a07a37fe49d9d3e039e79657ce226d6af1280f7.zip | |
initialize config.av.pip only once..
Diffstat (limited to 'lib/python')
| -rw-r--r-- | lib/python/Screens/PictureInPicture.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/python/Screens/PictureInPicture.py b/lib/python/Screens/PictureInPicture.py index c89ca229..5c496833 100644 --- a/lib/python/Screens/PictureInPicture.py +++ b/lib/python/Screens/PictureInPicture.py @@ -3,12 +3,17 @@ from enigma import ePoint, eSize, eServiceCenter from Components.VideoWindow import VideoWindow from Components.config import config, ConfigPosition +pip_config_initialized = False + class PictureInPicture(Screen): def __init__(self, session): + global pip_config_initialized Screen.__init__(self, session) self["video"] = VideoWindow() self.currentService = None - config.av.pip = ConfigPosition(default=[-1, -1, -1, -1], args = (719, 567, 720, 568)) + if not pip_config_initialized: + config.av.pip = ConfigPosition(default=[-1, -1, -1, -1], args = (719, 567, 720, 568)) + pip_config_initialized = True self.onLayoutFinish.append(self.LayoutFinished) def LayoutFinished(self): |
