From c2484f7aa2f42419a5faac9b0c5b5a62090a89bd Mon Sep 17 00:00:00 2001 From: Antonio Ospite Date: Mon, 28 Nov 2016 13:38:27 +0100 Subject: [PATCH 1/1] vidi/Player.py: move the stop() method after the play() method For consistency with the Timeline class. --- vidi/Player.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/vidi/Player.py b/vidi/Player.py index 15a4d07..cf30f9f 100755 --- a/vidi/Player.py +++ b/vidi/Player.py @@ -41,10 +41,6 @@ class Player(object): pipeline = Gst.parse_launch(pipeline_string) return Player(pipeline) - def stop(self): - self.mainloop.quit() - self.pipeline.set_state(Gst.State.NULL) - def bus_message_cb(self, unused_bus, message): if message.type == Gst.MessageType.EOS: self.stop() @@ -52,3 +48,7 @@ class Player(object): def play(self): self.pipeline.set_state(Gst.State.PLAYING) self.mainloop.run() + + def stop(self): + self.mainloop.quit() + self.pipeline.set_state(Gst.State.NULL) -- 2.1.4