parent
8bb0fb8fcb
commit
97f068d754
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue