mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
Merge pull request #1221 from LogicalPhallacy/ffmpegdetection
Make Jellyfin search its base dir for ffmpeg
This commit is contained in:
commit
007fe34363
@ -230,6 +230,11 @@ namespace MediaBrowser.MediaEncoding.Encoder
|
|||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
private string ExistsOnSystemPath(string filename)
|
private string ExistsOnSystemPath(string filename)
|
||||||
{
|
{
|
||||||
|
string inJellyfinPath = GetEncoderPathFromDirectory(System.AppContext.BaseDirectory, filename);
|
||||||
|
if (!string.IsNullOrEmpty(inJellyfinPath))
|
||||||
|
{
|
||||||
|
return inJellyfinPath;
|
||||||
|
}
|
||||||
var values = Environment.GetEnvironmentVariable("PATH");
|
var values = Environment.GetEnvironmentVariable("PATH");
|
||||||
|
|
||||||
foreach (var path in values.Split(Path.PathSeparator))
|
foreach (var path in values.Split(Path.PathSeparator))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user