Skip to content

Commit

Permalink
prettier printing of invalid videos
Browse files Browse the repository at this point in the history
  • Loading branch information
couleurm committed Apr 30, 2024
1 parent add0076 commit 5828540
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/video.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,13 @@ fn probe_video(input: &PathBuf) -> Option<FfProbe> {
return None;
}

let probe = match ffprobe::ffprobe(path) {
let probe = match ffprobe::ffprobe(&path) {
Ok(a) => a,
Err(e) => {
eprintln!(
dbg!(
"Skipping input file `{:?}` (failed probing): {:?}",
&input, e
&input,
e
);
return None;
}
Expand Down Expand Up @@ -265,6 +266,7 @@ pub fn resolve_input(args: &mut Arguments, recipe: &Recipe) -> Vec<Payload> {
Some(probe) => probe,
None => continue, // filtered out
};

videos.push((
vid.canonicalize()
.expect("Failed getting full input file path"),
Expand Down

0 comments on commit 5828540

Please sign in to comment.