remove try from ffplay process

This commit is contained in:
jb-alvarado 2018-11-25 19:34:18 +01:00
parent edc81f471f
commit 1c851fda13

View File

@ -678,16 +678,11 @@ def main():
try: try:
if _playout.preview: if _playout.preview:
# preview playout to player # preview playout to player
try: playout = Popen(
playout = Popen( ['ffplay', '-i', 'pipe:0'],
['ffplay', '-i', 'pipe:0'], stdin=mbuffer.stdout,
stdin=mbuffer.stdout, bufsize=0
bufsize=0 )
)
except OSError as e:
logger.error(e)
mbuffer.terminate()
sys.exit(1)
else: else:
# playout to rtmp # playout to rtmp
if _pre_comp.copy: if _pre_comp.copy: