From b292cd00bfaf360cc78674a546939f188de14ae8 Mon Sep 17 00:00:00 2001 From: jb-alvarado Date: Fri, 10 Mar 2023 10:01:45 +0100 Subject: [PATCH] fix skip clip, when is to short --- ffplayout-engine/src/input/playlist.rs | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/ffplayout-engine/src/input/playlist.rs b/ffplayout-engine/src/input/playlist.rs index 394bccb1..38ce245d 100644 --- a/ffplayout-engine/src/input/playlist.rs +++ b/ffplayout-engine/src/input/playlist.rs @@ -442,8 +442,8 @@ fn timed_source( || !config.playlist.length.contains(':') { // 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 = gen_source(config, node, &playout_stat.chain); } else if total_delta <= 0.0 { info!("Begin is over play time, skip: {}", node.source); } else if total_delta < node.duration - node.seek || last { @@ -476,13 +476,10 @@ pub fn gen_source( node.cmd = Some(seek_and_length(&node)); } } else { - let probe = MediaProbe::new(&config.storage.filler_clip); + error!("Source not found: \"{}\"", node.source); + warn!("Generate filler with {duration:.2} seconds length!"); - if node.source.is_empty() { - warn!("Generate filler with {duration:.2} seconds length!"); - } else { - error!("Source not found: {}", node.source); - } + let probe = MediaProbe::new(&config.storage.filler_clip); if config .storage