must kill encoder, not terminate

This commit is contained in:
jb-alvarado 2021-06-24 12:45:10 +02:00
parent 6f38daec14
commit 90a3288478
2 changed files with 4 additions and 4 deletions

View File

@ -121,9 +121,9 @@ def output():
# close encoder when nothing is to do anymore
if ff_proc.encoder.poll() is None:
ff_proc.encoder.terminate()
ff_proc.encoder.kill()
finally:
if ff_proc.encoder.poll() is None:
ff_proc.encoder.terminate()
ff_proc.encoder.kill()
ff_proc.encoder.wait()

View File

@ -129,9 +129,9 @@ def output():
# close encoder when nothing is to do anymore
if ff_proc.encoder.poll() is None:
ff_proc.encoder.terminate()
ff_proc.encoder.kill()
finally:
if ff_proc.encoder.poll() is None:
ff_proc.encoder.terminate()
ff_proc.encoder.kill()
ff_proc.encoder.wait()