From 0083da10a03328782581c6e87882f820f21cd8d5 Mon Sep 17 00:00:00 2001 From: djkato Date: Sat, 27 Jul 2024 19:13:40 +0200 Subject: [PATCH] hide ffmpeg command output in release mode --- src/encoder.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/encoder.rs b/src/encoder.rs index c0aaffe..ec875cd 100644 --- a/src/encoder.rs +++ b/src/encoder.rs @@ -267,7 +267,9 @@ impl FFMPEGCommand { .to_str() .context("missing or bad path")?, ]); + #[cfg(debug_assertions)] dbg!(&command); + #[cfg(debug_assertions)] dbg!(&command2); Ok(FFMPEGCommand { file_name: path.file_name().unwrap().to_str().unwrap().to_owned(),