Update FFProbe.cs

Pass FFOptions argument in call to GlobalFFOptions.GetFFProbeBinaryPath

Former-commit-id: 1d2c0f760b
This commit is contained in:
Notheisz57 2022-01-29 19:29:45 -08:00 committed by GitHub
parent 40a28f92e7
commit eec2c3b375

View file

@ -201,7 +201,7 @@ private static Instance PrepareInstance(string arguments, int outputCapacity, FF
{
FFProbeHelper.RootExceptionCheck();
FFProbeHelper.VerifyFFProbeExists(ffOptions);
var startInfo = new ProcessStartInfo(GlobalFFOptions.GetFFProbeBinaryPath(), arguments)
var startInfo = new ProcessStartInfo(GlobalFFOptions.GetFFProbeBinaryPath(ffOptions), arguments)
{
StandardOutputEncoding = ffOptions.Encoding,
StandardErrorEncoding = ffOptions.Encoding,