fix bug when clip length is less then one frame - so we skip clips when they less then one second.

This commit is contained in:
jb-alvarado 2022-08-18 22:28:05 +02:00
parent 351f36c183
commit e82b460e87
3 changed files with 11 additions and 2 deletions

2
Cargo.lock generated
View File

@ -941,7 +941,7 @@ dependencies = [
[[package]]
name = "ffplayout"
version = "0.14.1"
version = "0.14.2"
dependencies = [
"chrono",
"clap",

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.14.1"
version = "0.14.2"
edition = "2021"
[dependencies]

View File

@ -517,6 +517,15 @@ fn gen_source(
node.add_filter(config, filter_chain);
if node.out - node.seek < 1.0 {
warn!(
"Clip is less then 1 second long, skip: <b><magenta>{}</></b>",
node.source
);
node.process = Some(false);
}
node
}