From 4a63386bf821338f6c4111566752de5c7678d85f Mon Sep 17 00:00:00 2001 From: Jonathan Baecker Date: Tue, 15 Oct 2019 17:52:30 +0200 Subject: [PATCH] check poll() --- ffplayout.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ffplayout.py b/ffplayout.py index 9cfe14b4..8dd0150f 100755 --- a/ffplayout.py +++ b/ffplayout.py @@ -1433,7 +1433,7 @@ def main(): while True: buf = decoder.stdout.read(65424) - if not buf: + if not buf and decoder.poll() is not None: break encoder.stdin.write(buf)