From 7ba4d21ae993fe74c63971540a4e5e7504376cbd Mon Sep 17 00:00:00 2001 From: Jonathan Baecker Date: Tue, 17 Dec 2019 09:52:00 +0100 Subject: [PATCH] terminate orphaned encoder --- ffplayout.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ffplayout.py b/ffplayout.py index f96e2041..68372a20 100755 --- a/ffplayout.py +++ b/ffplayout.py @@ -1674,6 +1674,8 @@ def main(): _ff.encoder.terminate() finally: + if _ff.encoder.poll() is None: + _ff.encoder.terminate() _ff.encoder.wait()