mirror of
https://github.com/kkroening/ffmpeg-python.git
synced 2025-04-05 04:22:51 +08:00
Fix issue #195. Redirect stdout/stderr to DEVNULL when quiet is requested.
This commit is contained in:
parent
4cb7d26f55
commit
c12e8890ad
@ -279,8 +279,10 @@ def run_async(
|
||||
"""
|
||||
args = compile(stream_spec, cmd, overwrite_output=overwrite_output)
|
||||
stdin_stream = subprocess.PIPE if pipe_stdin else None
|
||||
stdout_stream = subprocess.PIPE if pipe_stdout or quiet else None
|
||||
stderr_stream = subprocess.PIPE if pipe_stderr or quiet else None
|
||||
stdout_stream = subprocess.PIPE if pipe_stdout else None
|
||||
stderr_stream = subprocess.PIPE if pipe_stderr else None
|
||||
if quiet:
|
||||
stdout_stream = stderr_stream = subprocess.DEVNULL
|
||||
return subprocess.Popen(
|
||||
args, stdin=stdin_stream, stdout=stdout_stream, stderr=stderr_stream
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user