From 7fd8fc8d555e927422d56eafc7eb4f22257a3a6d Mon Sep 17 00:00:00 2001 From: WithoutPants <53250216+WithoutPants@users.noreply.github.com> Date: Fri, 25 Feb 2022 11:03:41 +1100 Subject: [PATCH] Remove ChunkDuration warning (#2346) ChunkDuration is only used in preview generation, and is already validated there. --- pkg/manager/generator.go | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/pkg/manager/generator.go b/pkg/manager/generator.go index 5a9a2a98a..9a6126cc2 100644 --- a/pkg/manager/generator.go +++ b/pkg/manager/generator.go @@ -114,15 +114,12 @@ func (g *GeneratorInfo) configure() error { return err } - // #2250 - ensure ChunkCount and ChunkDuration are valid + // #2250 - ensure ChunkCount is valid if g.ChunkCount < 1 { logger.Warnf("[generator] Segment count (%d) must be > 0. Using 1 instead.", g.ChunkCount) g.ChunkCount = 1 } - if g.ChunkDuration < 0.75 { - logger.Warnf("[generator] Segment duration (%f) must be >= 0.75. Using 0.75 instead.", g.ChunkDuration) - g.ChunkDuration = 0.75 - } + g.NthFrame = g.NumberOfFrames / g.ChunkCount return nil