allow YUV if manually enabled
[enigma2.git] / lib / python / Components / ServicePosition.py
index 35280cf981492b2bf08bac4439b6e2243aa012d9..0cbe500d932a54d192b6ea28520483a71f7347d7 100644 (file)
@@ -100,8 +100,10 @@ class ServicePositionGauge(PerServiceBase):
                data = self.get()
                if data is None:
                        return
-               self.instance.setLength(data[0])
-               self.instance.setPosition(data[1])
+
+               if self.instance is not None:
+                       self.instance.setLength(data[0])
+                       self.instance.setPosition(data[1])
                
        def stopEvent(self):
                self.disablePolling()