git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add TimerEntry for later use in TimerEdit
[enigma2.git]
/
lib
/
python
/
Components
/
ServicePosition.py
diff --git
a/lib/python/Components/ServicePosition.py
b/lib/python/Components/ServicePosition.py
index 462102f804a9e6d1bdbe996c2ce44ac4a9e25b70..e402751ce2d6598af59784a91ab93c6c24cbdfd8 100644
(file)
--- 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:
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)
if self.type != self.TYPE_LENGTH:
self.updateTimer.start(500)
@@
-43,11
+44,11
@@
class ServicePosition(PerServiceDisplay):
self.update()
def get(self, what):
self.update()
def get(self, what):
- seek = iSeekableServicePtr()
service = self.navcore.getCurrentService()
if service != None:
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:
if what == self.TYPE_LENGTH:
r = seek.getLength()
elif what == self.TYPE_POSITION: