Ensure GStreamer bin is added to PATH on Windows startup

This commit is contained in:
VideoTools CI 2026-01-17 20:35:17 -05:00
parent c28d86b9bc
commit a194801545

View File

@ -6609,6 +6609,11 @@ func main() {
logging.SetDebug(*debugFlag || os.Getenv("VIDEOTOOLS_DEBUG") != "")
logging.Debug(logging.CatSystem, "starting VideoTools %s at %s", fullVersion(), time.Now().Format(time.RFC3339))
// Best effort: ensure GStreamer bin is on PATH for Windows before initializing players.
if runtime.GOOS == "windows" {
utils.EnsureGStreamerOnPath()
}
// Detect platform and configure paths
cfg := DetectPlatform() // Detect and initialize platform paths locally
utils.SetFFmpegPaths(cfg.FFmpegPath, cfg.FFprobePath) // Set global paths in utils package