]> git.parisson.com Git - piplayer.git/commitdiff
decrease bouncetime, securing play hermes
authorGuillaume Pellerin <yomguy@parisson.com>
Sun, 28 Jul 2013 20:48:42 +0000 (22:48 +0200)
committerGuillaume Pellerin <yomguy@parisson.com>
Sun, 28 Jul 2013 20:48:42 +0000 (22:48 +0200)
piplayer

index 5ec1037c3cfd01221b116852d1e78b6f9ac7a036..32570bd98a96a8e41a076dd0bf00153e807e5bfc 100755 (executable)
--- a/piplayer
+++ b/piplayer
@@ -100,7 +100,7 @@ class PiPlayer(object):
  
         # GPIO controller
         self.gpio_controller = GPIOController()
-        self.gpio_controller.add_channel_callback(self.gpio_channel_play, self.gpio_play, 3000)
+        self.gpio_controller.add_channel_callback(self.gpio_channel_play, self.gpio_play, 1000)
         self.gpio_controller.add_channel_callback(self.gpio_channel_stop, self.gpio_stop, 1000)
         self.gpio_controller.start()
         
@@ -197,6 +197,7 @@ class PiPlayer(object):
         
     def play(self):
         if not self.playing:
+            self.pipeline.set_state(gst.STATE_NULL)
             self.pipeline.set_state(gst.STATE_PLAYING)
             self.playing = True
         elif self.auto_next: