diff options
| author | Felix Domke <tmbinc@elitedvb.net> | 2009-03-31 15:53:09 +0200 |
|---|---|---|
| committer | Felix Domke <tmbinc@elitedvb.net> | 2009-03-31 15:53:09 +0200 |
| commit | 624cd1811f54808d23a50840bb35494e4e5ca3b6 (patch) | |
| tree | 6c1339bd9e7777ebaa6a13fff6202ebfdfd1e193 /lib/python/Screens | |
| parent | 354bc82ac66fc75ede33a38e9f9ba870b16352f0 (diff) | |
| parent | bce53d4a67d1655a496eebe5912c8573e880114e (diff) | |
| download | enigma2-624cd1811f54808d23a50840bb35494e4e5ca3b6.tar.gz enigma2-624cd1811f54808d23a50840bb35494e4e5ca3b6.zip | |
Merge branch 'tmbinc/FixTimingBugs'
Diffstat (limited to 'lib/python/Screens')
| -rw-r--r-- | lib/python/Screens/InfoBarGenerics.py | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/lib/python/Screens/InfoBarGenerics.py b/lib/python/Screens/InfoBarGenerics.py index 8221fca7..c1618184 100644 --- a/lib/python/Screens/InfoBarGenerics.py +++ b/lib/python/Screens/InfoBarGenerics.py @@ -835,12 +835,21 @@ class InfoBarSeek: print "not pauseable." state = self.SEEK_STATE_PLAY - oldstate = self.seekstate self.seekstate = state - for i in (0, 1, 2): - if oldstate[i] != self.seekstate[i]: - (self.session.nav.pause, pauseable.setFastForward, pauseable.setSlowMotion)[i](self.seekstate[i]) + if pauseable is not None: + if self.seekstate[0]: + print "resolved to PAUSE" + pauseable.pause() + elif self.seekstate[1]: + print "resolved to FAST FORWARD" + pauseable.setFastForward(self.seekstate[1]) + elif self.seekstate[2]: + print "resolved to SLOW MOTION" + pauseable.setSlowMotion(self.seekstate[2]) + else: + print "resolved to PLAY" + pauseable.unpause() for c in self.onPlayStateChanged: c(self.seekstate) |
