From 1c851fda13c18af0a1dcd3dd4b7ab3ed5b7e895e Mon Sep 17 00:00:00 2001 From: jb-alvarado Date: Sun, 25 Nov 2018 19:34:18 +0100 Subject: [PATCH] remove try from ffplay process --- ffplayout.py | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/ffplayout.py b/ffplayout.py index 528d0152..1d1d6ea5 100755 --- a/ffplayout.py +++ b/ffplayout.py @@ -678,16 +678,11 @@ def main(): try: if _playout.preview: # preview playout to player - try: - playout = Popen( - ['ffplay', '-i', 'pipe:0'], - stdin=mbuffer.stdout, - bufsize=0 - ) - except OSError as e: - logger.error(e) - mbuffer.terminate() - sys.exit(1) + playout = Popen( + ['ffplay', '-i', 'pipe:0'], + stdin=mbuffer.stdout, + bufsize=0 + ) else: # playout to rtmp if _pre_comp.copy: