Merge pull request #194 from jb-alvarado/master

fix unwrap error on None output_cmd, #193
This commit is contained in:
jb-alvarado 2022-09-13 13:56:17 +02:00 committed by GitHub
commit a7ccf3dbf4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 9 additions and 9 deletions

6
Cargo.lock generated
View File

@ -941,7 +941,7 @@ dependencies = [
[[package]]
name = "ffplayout"
version = "0.15.1"
version = "0.15.2"
dependencies = [
"chrono",
"clap",
@ -960,7 +960,7 @@ dependencies = [
[[package]]
name = "ffplayout-api"
version = "0.6.1"
version = "0.6.2"
dependencies = [
"actix-files",
"actix-multipart",
@ -990,7 +990,7 @@ dependencies = [
[[package]]
name = "ffplayout-lib"
version = "0.15.1"
version = "0.15.2"
dependencies = [
"chrono",
"crossbeam-channel",

View File

@ -4,7 +4,7 @@ description = "Rest API for ffplayout"
license = "GPL-3.0"
authors = ["Jonathan Baecker jonbae77@gmail.com"]
readme = "README.md"
version = "0.6.1"
version = "0.6.2"
edition = "2021"
[dependencies]

View File

@ -4,7 +4,7 @@ description = "24/7 playout based on rust and ffmpeg"
license = "GPL-3.0"
authors = ["Jonathan Baecker jonbae77@gmail.com"]
readme = "README.md"
version = "0.15.1"
version = "0.15.2"
edition = "2021"
[dependencies]

@ -1 +1 @@
Subproject commit 3512dec8f117dce1bad4f82461de21e37e01d770
Subproject commit 51719eb9c03d26da8ffac6a677d1c41b756bdf83

View File

@ -4,7 +4,7 @@ description = "Library for ffplayout"
license = "GPL-3.0"
authors = ["Jonathan Baecker jonbae77@gmail.com"]
readme = "README.md"
version = "0.15.1"
version = "0.15.2"
edition = "2021"
[dependencies]

View File

@ -647,7 +647,7 @@ pub fn include_file(config: PlayoutConfig, file_path: &Path) -> bool {
.out
.output_cmd
.clone()
.unwrap()
.unwrap_or_else(|| vec![String::new()])
.iter()
.find(|s| s.contains(".ts"))
{
@ -661,7 +661,7 @@ pub fn include_file(config: PlayoutConfig, file_path: &Path) -> bool {
if let Some(m3u8_path) = config
.out
.output_cmd
.unwrap()
.unwrap_or_else(|| vec![String::new()])
.iter()
.find(|s| s.contains(".m3u8") && !s.contains("master.m3u8"))
{