mirror of
https://github.com/crunchy-labs/crunchy-cli.git
synced 2026-01-21 12:12: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 log::debug;
|
||||||
use std::io::ErrorKind;
|
use std::io::ErrorKind;
|
||||||
use std::path::PathBuf;
|
use std::path::PathBuf;
|
||||||
use std::process::Command;
|
use std::process::{Command, Stdio};
|
||||||
use std::{env, io};
|
use std::{env, io};
|
||||||
use tempfile::{Builder, NamedTempFile};
|
use tempfile::{Builder, NamedTempFile};
|
||||||
|
|
||||||
pub fn has_ffmpeg() -> bool {
|
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() {
|
if ErrorKind::NotFound != e.kind() {
|
||||||
debug!(
|
debug!(
|
||||||
"unknown error occurred while checking if ffmpeg exists: {}",
|
"unknown error occurred while checking if ffmpeg exists: {}",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue