diff --git a/ffplayout.py b/ffplayout.py index 02bbd95a..89ed0674 100755 --- a/ffplayout.py +++ b/ffplayout.py @@ -1061,7 +1061,7 @@ def main(): ] + src_cmd + ff_pre_settings, stdout=PIPE) as decoder: copyfileobj(decoder.stdout, encoder.stdin) - except (KeyboardInterrupt, SystemExit): + except (KeyboardInterrupt, SystemExit, BrokenPipeError): logger.warning('program terminated') watcher.stop() decoder.terminate()