diff --git a/Cargo.lock b/Cargo.lock index 33074194..b8e13316 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1226,7 +1226,7 @@ checksum = "25cbce373ec4653f1a01a31e8a5e5ec0c622dc27ff9c4e6606eefef5cbbed4a5" [[package]] name = "ffplayout" -version = "0.20.1" +version = "0.20.2" dependencies = [ "chrono", "clap", @@ -1248,7 +1248,7 @@ dependencies = [ [[package]] name = "ffplayout-api" -version = "0.20.1" +version = "0.20.2" dependencies = [ "actix-files", "actix-multipart", @@ -1287,7 +1287,7 @@ dependencies = [ [[package]] name = "ffplayout-lib" -version = "0.20.1" +version = "0.20.2" dependencies = [ "chrono", "crossbeam-channel", @@ -3425,7 +3425,7 @@ dependencies = [ [[package]] name = "tests" -version = "0.20.1" +version = "0.20.2" dependencies = [ "chrono", "crossbeam-channel", diff --git a/Cargo.toml b/Cargo.toml index 6c579d06..dd6370cf 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,7 +4,7 @@ default-members = ["ffplayout-api", "ffplayout-engine", "tests"] resolver = "2" [workspace.package] -version = "0.20.1" +version = "0.20.2" license = "GPL-3.0" repository = "https://github.com/ffplayout/ffplayout" authors = ["Jonathan Baecker "] diff --git a/lib/src/utils/mod.rs b/lib/src/utils/mod.rs index a2eff630..e9356b97 100644 --- a/lib/src/utils/mod.rs +++ b/lib/src/utils/mod.rs @@ -272,7 +272,13 @@ impl MediaProbe { video_streams: v_stream, }) } - Err(e) => Err(ProcError::Ffprobe(e)), + Err(e) => { + if !Path::new(input).is_file() { + Err(ProcError::Custom(format!("File '{input}' not exist!"))) + } else { + Err(ProcError::Ffprobe(e)) + } + } } } }