mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 04:44:37 +03:00
Perform hardware codec checks on separate go routine (#6414)
Warn if tests are taking a long time Add WaitDelay to try to kill process if hanging
This commit is contained in:
@@ -313,6 +313,7 @@ func (s *Manager) RefreshFFMpeg(ctx context.Context) {
|
||||
s.FFMpeg = ffmpeg.NewEncoder(ffmpegPath)
|
||||
s.FFProbe = ffmpeg.NewFFProbe(ffprobePath)
|
||||
|
||||
s.FFMpeg.InitHWSupport(ctx)
|
||||
// initialise hardware support with background context
|
||||
s.FFMpeg.InitHWSupport(context.Background())
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user