mirror of
https://github.com/crunchy-labs/crunchy-cli.git
synced 2026-01-21 04:02:00 -06:00
Enable stdout output
This commit is contained in:
parent
a7adb7191e
commit
ba1c0aaaa4
4 changed files with 20 additions and 8 deletions
|
|
@ -317,7 +317,12 @@ impl Downloader {
|
|||
let progress_handler = progress!("Generating output file");
|
||||
|
||||
let ffmpeg = Command::new("ffmpeg")
|
||||
.stdout(Stdio::null())
|
||||
// pass ffmpeg stdout to real stdout only if output file is stdout
|
||||
.stdout(if dst.to_str().unwrap() == "-" {
|
||||
Stdio::inherit()
|
||||
} else {
|
||||
Stdio::null()
|
||||
})
|
||||
.stderr(Stdio::piped())
|
||||
.args(command_args)
|
||||
.output()?;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue