projects
/
vidi-player.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
f18fd9f
)
vidi/Player.py: rename the quit() method to stop()
author
Antonio Ospite <ao2@ao2.it>
Mon, 28 Nov 2016 12:24:01 +0000
(13:24 +0100)
committer
Antonio Ospite <ao2@ao2.it>
Mon, 28 Nov 2016 12:24:01 +0000
(13:24 +0100)
vidi/Player.py
patch
|
blob
|
history
diff --git
a/vidi/Player.py
b/vidi/Player.py
index
bd826bc
..
58c3ece
100755
(executable)
--- a/
vidi/Player.py
+++ b/
vidi/Player.py
@@
-41,13
+41,13
@@
class Player(object):
pipeline = Gst.parse_launch(pipeline_string)
return Player(pipeline)
pipeline = Gst.parse_launch(pipeline_string)
return Player(pipeline)
- def
quit
(self):
+ 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.mainloop.quit()
self.pipeline.set_state(Gst.State.NULL)
def bus_message_cb(self, unused_bus, message):
if message.type == Gst.MessageType.EOS:
- self.
quit
()
+ self.
stop
()
def play(self):
self.pipeline.set_state(Gst.State.PLAYING)
def play(self):
self.pipeline.set_state(Gst.State.PLAYING)
@@
-55,7
+55,7
@@
class Player(object):
try:
self.mainloop.run()
except KeyboardInterrupt:
try:
self.mainloop.run()
except KeyboardInterrupt:
- self.
quit
()
+ self.
stop
()
return 1
return 0
return 1
return 0