From: Einar Jørgen Haraldseid Date: Thu, 14 Feb 2019 21:16:49 +0000 (+0100) Subject: quit function should reference self X-Git-Url: https://git.slaskete.net/python-gstreamer-examples/commitdiff_plain/f85549eda60da52c7de415185aeaf2f937ecaae4?ds=sidebyside;hp=a94ae2ba254f9d57eb22a38a998a90e417f0b6d9 quit function should reference self --- diff --git a/example1.py b/example1.py index ad21708..1d7cfa3 100755 --- a/example1.py +++ b/example1.py @@ -33,7 +33,7 @@ class Main: self.pipeline.set_state(Gst.State.PLAYING) # We want a graceful shutdown on CTRL+C - def quit(signal, frame): + def quit(self, *args): print("stopping") exit(0)