Merge pull request #1221 from LogicalPhallacy/ffmpegdetection

Make Jellyfin search its base dir for ffmpeg
This commit is contained in:
Joshua M. Boniface 2019-04-09 23:57:20 -04:00 committed by GitHub
commit 007fe34363
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -230,6 +230,11 @@ namespace MediaBrowser.MediaEncoding.Encoder
/// <returns></returns>
private string ExistsOnSystemPath(string filename)
{
string inJellyfinPath = GetEncoderPathFromDirectory(System.AppContext.BaseDirectory, filename);
if (!string.IsNullOrEmpty(inJellyfinPath))
{
return inJellyfinPath;
}
var values = Environment.GetEnvironmentVariable("PATH");
foreach (var path in values.Split(Path.PathSeparator))