From 329640aa6224cd03eb6141659beb68d058fae9aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Mon, 26 Aug 2024 18:15:55 +0200 Subject: [PATCH] Cleanup: rename `CreateVideoParams` to `FramesToVideoParams` The command used to be `create-video`, but got renamed to `frames-to-video`. This cleanup renames the `CreateVideoParams` struct to `FramesToVideoParams`. No functional changes. --- internal/worker/command_ffmpeg.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/worker/command_ffmpeg.go b/internal/worker/command_ffmpeg.go index bd8f2048..372ab0df 100644 --- a/internal/worker/command_ffmpeg.go +++ b/internal/worker/command_ffmpeg.go @@ -25,7 +25,7 @@ import ( "projects.blender.org/studio/flamenco/pkg/crosspath" ) -type CreateVideoParams struct { +type FramesToVideoParams struct { exe string // Executable path defined by the Manager. exeArgs string // Its CLI parameters defined by the Manager. fps float64 // Frames per second of the video file. @@ -101,9 +101,9 @@ func (ce *CommandExecutor) cmdFramesToVideoExeCommand( return execCmd, cleanup, nil } -func cmdFramesToVideoParams(logger zerolog.Logger, cmd api.Command) (CreateVideoParams, error) { +func cmdFramesToVideoParams(logger zerolog.Logger, cmd api.Command) (FramesToVideoParams, error) { var ( - parameters CreateVideoParams + parameters FramesToVideoParams ok bool ) @@ -172,7 +172,7 @@ func cmdFramesToVideoParams(logger zerolog.Logger, cmd api.Command) (CreateVideo // getInputGlob constructs CLI arguments for FFmpeg input file globbing. // The 2nd return value is a cleanup function. -func (p *CreateVideoParams) getInputGlob() ([]string, func(), error) { +func (p *FramesToVideoParams) getInputGlob() ([]string, func(), error) { if runtime.GOOS == "windows" { return createIndexFile(p.inputGlob, p.fps) }