[hwaccel] increase timeout, fix formatting (#6328)

Thanks to @Gykes for helping find the formatting error
This commit is contained in:
feederbox826 2025-11-27 19:47:34 -05:00 committed by GitHub
parent b3da730a05
commit a3ed381901
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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
}