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:
parent
351f36c183
commit
e82b460e87
2
Cargo.lock
generated
2
Cargo.lock
generated
@ -941,7 +941,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "ffplayout"
|
name = "ffplayout"
|
||||||
version = "0.14.1"
|
version = "0.14.2"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"chrono",
|
"chrono",
|
||||||
"clap",
|
"clap",
|
||||||
|
@ -4,7 +4,7 @@ description = "24/7 playout based on rust and ffmpeg"
|
|||||||
license = "GPL-3.0"
|
license = "GPL-3.0"
|
||||||
authors = ["Jonathan Baecker jonbae77@gmail.com"]
|
authors = ["Jonathan Baecker jonbae77@gmail.com"]
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
version = "0.14.1"
|
version = "0.14.2"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
|
@ -517,6 +517,15 @@ fn gen_source(
|
|||||||
|
|
||||||
node.add_filter(config, filter_chain);
|
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
|
node
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user