diff --git a/src/format/mod.rs b/src/format/mod.rs index 63879786..f012ce81 100644 --- a/src/format/mod.rs +++ b/src/format/mod.rs @@ -229,8 +229,8 @@ where } } -pub fn input_with_interrupt_and_dictionary( - path: &Path, +pub fn input_with_interrupt_and_dictionary + ?Sized, F>( + path: &P, closure: F, options: Dictionary, ) -> Result @@ -528,3 +528,19 @@ pub fn output_to_stream( } } } + +#[cfg(test)] +mod tests { + use super::*; + + #[test] + fn input_with_interrupt_and_dictionary_accepts_str_path() { + let result = input_with_interrupt_and_dictionary( + "/ffmpeg-next-input-does-not-exist", + || false, + Dictionary::new(), + ); + + assert!(result.is_err()); + } +}