summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Karsten <carl@personnelware.com>2016-04-16 17:14:58 -0500
committerCarl Karsten <carl@personnelware.com>2016-04-16 17:14:58 -0500
commit302e9d304e0e59c17b201e8e7d78f913433eaa6a (patch)
treea7ef597411c6d2028539ed1e65a22260192a99dd
parenta7d75572332c0013c253c7a05e227a70b0c6abd7 (diff)
Cleanly shutdown pipeline on ^c
-rwxr-xr-xclients/source/ingest.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/clients/source/ingest.py b/clients/source/ingest.py
index dbd4a4b..2b63dde 100755
--- a/clients/source/ingest.py
+++ b/clients/source/ingest.py
@@ -228,8 +228,11 @@ def run_pipeline(pipeline, args):
except KeyboardInterrupt:
print('Terminated via Ctrl-C')
+ print('Shutting down...')
+ senderPipeline.set_state(Gst.State.NULL)
+ print('Done.')
-
+ return
def get_args():