mirror of
https://github.com/crunchy-labs/crunchy-cli.git
synced 2026-01-21 04:02:00 -06:00
Remove unwanted ffmpeg output when check if available
This commit is contained in:
parent
54018f9773
commit
c4540ada50
1 changed files with 2 additions and 2 deletions
|
|
@ -1,12 +1,12 @@
|
|||
use log::debug;
|
||||
use std::io::ErrorKind;
|
||||
use std::path::PathBuf;
|
||||
use std::process::Command;
|
||||
use std::process::{Command, Stdio};
|
||||
use std::{env, io};
|
||||
use tempfile::{Builder, NamedTempFile};
|
||||
|
||||
pub fn has_ffmpeg() -> bool {
|
||||
if let Err(e) = Command::new("ffmpeg").spawn() {
|
||||
if let Err(e) = Command::new("ffmpeg").stderr(Stdio::null()).spawn() {
|
||||
if ErrorKind::NotFound != e.kind() {
|
||||
debug!(
|
||||
"unknown error occurred while checking if ffmpeg exists: {}",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue