swig: some more simplifying magic
[openblackhole/openblackhole-enigma2.git] / Navigation.py
index 5fe2651..03a1c61 100644 (file)
@@ -57,9 +57,11 @@ class Navigation:
                return self.pnav.enqueueService(ref)
        
        def getCurrentService(self):
-               service = iPlayableServicePtr()
-               if self.pnav.getCurrentService(service):
+               service = self.pnav.getCurrentService()
+               
+               if service is None:
                        return None
+               
                return service
        
        def getPlaylist(self):