projects
/
vidi-player.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Handle KeyboardInterrupt in the main program, not in the Player class
[vidi-player.git]
/
vidi
/
Player.py
diff --git
a/vidi/Player.py
b/vidi/Player.py
index
58c3ece
..
15a4d07
100755
(executable)
--- a/
vidi/Player.py
+++ b/
vidi/Player.py
@@
-51,11
+51,4
@@
class Player(object):
def play(self):
self.pipeline.set_state(Gst.State.PLAYING)
-
- try:
- self.mainloop.run()
- except KeyboardInterrupt:
- self.stop()
- return 1
-
- return 0
+ self.mainloop.run()