diff options
author | Carl Karsten <carl@personnelware.com> | 2016-04-16 17:14:58 -0500 |
---|---|---|
committer | Carl Karsten <carl@personnelware.com> | 2016-04-16 17:14:58 -0500 |
commit | 302e9d304e0e59c17b201e8e7d78f913433eaa6a (patch) | |
tree | a7ef597411c6d2028539ed1e65a22260192a99dd | |
parent | a7d75572332c0013c253c7a05e227a70b0c6abd7 (diff) |
Cleanly shutdown pipeline on ^c
-rwxr-xr-x | clients/source/ingest.py | 5 |
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(): |