Merge pull request #297 from Notheisz57/master

Pass FFOptions in call to GetFFProbeBinaryPath

Former-commit-id: 1bb0deea4e
This commit is contained in:
Malte Rosenbjerg 2022-02-13 16:17:31 +01:00 committed by GitHub
commit 7c4b837c10

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,