Handle KeyboardInterrupt in the main program, not in the Player class
[vidi-player.git] / vidi / Player.py
index 58c3ece..15a4d07 100755 (executable)
@@ -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()