Revert "InfoBarTimeshift: allow pause/unpause on streams"
authorlittlesat <littlesat99@yahoo.com>
Thu, 5 Feb 2015 09:13:38 +0000 (10:13 +0100)
committerlittlesat <littlesat99@yahoo.com>
Thu, 5 Feb 2015 09:13:38 +0000 (10:13 +0100)
This reverts commit 507b9bf5895717408ee5cd3d504e385ca392612a.

As it has sideeffects that a started timeshift could not be paused anymore

lib/python/Screens/InfoBarGenerics.py

index 795f453..d2b4c74 100644 (file)
@@ -1712,20 +1712,6 @@ class InfoBarTimeshift:
                ts = self.getTimeshift()
                return ts and ts.isTimeshiftActive()
 
-       def playpauseService(self):
-               service = self.session.nav.getCurrentService()
-               if service and service.streamed():
-                       pauseable = service.pause()
-                       if pauseable:
-                               if self.seekstate == self.SEEK_STATE_PLAY:
-                                       pauseable.pause()
-                                       self.seekstate = self.SEEK_STATE_PAUSE
-                               else:
-                                       pauseable.unpause()
-                                       self.seekstate = self.SEEK_STATE_PLAY
-                               return
-               return 0
-
        def startTimeshift(self, pauseService = True):
                print "enable timeshift"
                ts = self.getTimeshift()
@@ -1733,7 +1719,7 @@ class InfoBarTimeshift:
                        if not pauseService and not int(config.usage.timeshift_start_delay.value):
                                self.session.open(MessageBox, _("Timeshift not possible!"), MessageBox.TYPE_ERROR, simple = True)
                        print "no ts interface"
-                       return self.playpauseService()
+                       return 0
 
                if ts.isTimeshiftEnabled():
                        print "hu, timeshift already enabled?"