Fix ffmpeg resolution when in current directory (#4899)

* Use absolute path to resolve ffmpeg in config directory
* Pass absolute config path to plugins
This commit is contained in:
WithoutPants
2024-05-30 15:50:27 +10:00
committed by GitHub
parent 2b699fcf95
commit 3b146588c6
4 changed files with 20 additions and 4 deletions

View File

@@ -27,7 +27,7 @@ func (r *mutationResolver) Setup(ctx context.Context, input manager.SetupInput)
func (r *mutationResolver) DownloadFFMpeg(ctx context.Context) (string, error) {
mgr := manager.GetInstance()
configDir := mgr.Config.GetConfigPath()
configDir := mgr.Config.GetConfigPathAbs()
// don't run if ffmpeg is already installed
ffmpegPath := ffmpeg.FindFFMpeg(configDir)