From 302e9d304e0e59c17b201e8e7d78f913433eaa6a Mon Sep 17 00:00:00 2001 From: Carl Karsten Date: Sat, 16 Apr 2016 17:14:58 -0500 Subject: Cleanly shutdown pipeline on ^c --- clients/source/ingest.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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(): -- cgit v1.2.3