From: Guillaume Pellerin Date: Sun, 28 Jul 2013 20:48:42 +0000 (+0200) Subject: decrease bouncetime, securing play X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=e500430b0f604260b02ade6d34aaf53953ba3549;p=piplayer.git decrease bouncetime, securing play --- diff --git a/piplayer b/piplayer index 5ec1037..32570bd 100755 --- 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: