Merge pull request #194 from jb-alvarado/master
fix unwrap error on None output_cmd, #193
This commit is contained in:
commit
a7ccf3dbf4
6
Cargo.lock
generated
6
Cargo.lock
generated
@ -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",
|
||||
|
@ -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]
|
||||
|
@ -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
|
@ -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]
|
||||
|
@ -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"))
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user