From a3ed3819014d11a097ce860a8123c6a43f900ce8 Mon Sep 17 00:00:00 2001 From: feederbox826 Date: Thu, 27 Nov 2025 19:47:34 -0500 Subject: [PATCH] [hwaccel] increase timeout, fix formatting (#6328) Thanks to @Gykes for helping find the formatting error --- pkg/ffmpeg/codec_hardware.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/ffmpeg/codec_hardware.go b/pkg/ffmpeg/codec_hardware.go index bbbdbda6e..530f4dc59 100644 --- a/pkg/ffmpeg/codec_hardware.go +++ b/pkg/ffmpeg/codec_hardware.go @@ -69,7 +69,7 @@ func (f *FFMpeg) InitHWSupport(ctx context.Context) { args = args.Output("-") // #6064 - add timeout to context to prevent hangs - const hwTestTimeoutSecondsDefault = 1 + const hwTestTimeoutSecondsDefault = 10 hwTestTimeoutSeconds := hwTestTimeoutSecondsDefault * time.Second // allow timeout to be overridden with environment variable @@ -90,7 +90,7 @@ func (f *FFMpeg) InitHWSupport(ctx context.Context) { if err := cmd.Run(); err != nil { if testCtx.Err() != nil { - logger.Debugf("[InitHWSupport] Codec %s test timed out after %d seconds", codec, hwTestTimeoutSeconds) + logger.Debugf("[InitHWSupport] Codec %s test timed out after %s", codec, hwTestTimeoutSeconds) continue }