fix skip clip, when is to short

This commit is contained in:
jb-alvarado 2023-03-10 10:01:45 +01:00
parent cfaa70891c
commit b292cd00bf

View File

@ -442,8 +442,8 @@ fn timed_source(
|| !config.playlist.length.contains(':') || !config.playlist.length.contains(':')
{ {
// when we are in the 24 hour range, get the clip // when we are in the 24 hour range, get the clip
new_node = gen_source(config, node, &playout_stat.chain);
new_node.process = Some(true); new_node.process = Some(true);
new_node = gen_source(config, node, &playout_stat.chain);
} else if total_delta <= 0.0 { } else if total_delta <= 0.0 {
info!("Begin is over play time, skip: {}", node.source); info!("Begin is over play time, skip: {}", node.source);
} else if total_delta < node.duration - node.seek || last { } else if total_delta < node.duration - node.seek || last {
@ -476,13 +476,10 @@ pub fn gen_source(
node.cmd = Some(seek_and_length(&node)); node.cmd = Some(seek_and_length(&node));
} }
} else { } else {
let probe = MediaProbe::new(&config.storage.filler_clip); error!("Source not found: <b><magenta>\"{}\"</></b>", node.source);
if node.source.is_empty() {
warn!("Generate filler with <yellow>{duration:.2}</> seconds length!"); warn!("Generate filler with <yellow>{duration:.2}</> seconds length!");
} else {
error!("Source not found: <b><magenta>{}</></b>", node.source); let probe = MediaProbe::new(&config.storage.filler_clip);
}
if config if config
.storage .storage