fix
Some checks failed
ci/woodpecker/push/build Pipeline failed

This commit is contained in:
JMARyA 2024-12-14 19:31:38 +01:00
parent 8bb0fb8fcb
commit 97f068d754
Signed by: jmarya
GPG key ID: 901B2ADDF27C2263

View file

@ -46,7 +46,7 @@ pub fn get_vid_duration(path: &PathBuf) -> Option<f64> {
let stdout = String::from_utf8_lossy(&out.stdout).to_string(); let stdout = String::from_utf8_lossy(&out.stdout).to_string();
//let stderr = String::from_utf8_lossy(&out.stderr).to_string(); //let stderr = String::from_utf8_lossy(&out.stderr).to_string();
let val: f64 = stdout.trim().parse().unwrap(); let val: f64 = stdout.trim().parse().unwrap_or(0.0);
log::info!("Extracted Duration from {path:?}"); log::info!("Extracted Duration from {path:?}");
Some(val) Some(val)
} }