diff options
| author | Felix Domke <tmbinc@elitedvb.net> | 2005-09-26 17:25:45 +0000 |
|---|---|---|
| committer | Felix Domke <tmbinc@elitedvb.net> | 2005-09-26 17:25:45 +0000 |
| commit | 76e87479554f771723ea4005788f9318cd1654f4 (patch) | |
| tree | bc4e083852791cd9fd03d959ae001eca0042fbd9 /lib/python/Components/ServicePosition.py | |
| parent | 0722bdffe9e089cf67bba0887aff68391fd4ca72 (diff) | |
| download | enigma2-76e87479554f771723ea4005788f9318cd1654f4.tar.gz enigma2-76e87479554f771723ea4005788f9318cd1654f4.zip | |
- simplified getInterface-styled calls: now using return value instead of mutable argument
Diffstat (limited to 'lib/python/Components/ServicePosition.py')
| -rw-r--r-- | lib/python/Components/ServicePosition.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/python/Components/ServicePosition.py b/lib/python/Components/ServicePosition.py index 462102f8..e402751c 100644 --- a/lib/python/Components/ServicePosition.py +++ b/lib/python/Components/ServicePosition.py @@ -33,7 +33,8 @@ class ServicePosition(PerServiceDisplay): self.available = 0 if service != None: - if not service.seek(seek): + seek = service.seek(seek) + if seek != None: if self.type != self.TYPE_LENGTH: self.updateTimer.start(500) @@ -43,11 +44,11 @@ class ServicePosition(PerServiceDisplay): self.update() def get(self, what): - seek = iSeekableServicePtr() service = self.navcore.getCurrentService() if service != None: - if not service.seek(seek): + seek = service.seek(seek) + if seek != None: if what == self.TYPE_LENGTH: r = seek.getLength() elif what == self.TYPE_POSITION: |
