kopia lustrzana https://github.com/corrscope/corrscope
[PipeOutput] Combine all return codes from pipeline.
This allows the caller to detect whether intermediate commands (eg. ffmpeg | ffplay) failed.pull/357/head
rodzic
2c48de88af
commit
8f228d2da7
|
@ -108,9 +108,9 @@ class PipeOutput(Output):
|
|||
def close(self) -> int:
|
||||
self._stream.close()
|
||||
|
||||
retval = None
|
||||
retval = 0
|
||||
for popen in self._pipeline:
|
||||
retval = popen.wait()
|
||||
retval |= popen.wait()
|
||||
return retval # final value
|
||||
|
||||
def __exit__(self, exc_type, exc_val, exc_tb):
|
||||
|
|
Ładowanie…
Reference in New Issue