mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-01-24 03:58:06 +00:00
Simplify the way we choose our ffmpeg
* no longer search $PATH * no longer require a full path * don't fall back
This commit is contained in:
@@ -12,8 +12,6 @@ namespace MediaBrowser.MediaEncoding.Encoder
|
||||
{
|
||||
public class EncoderValidator
|
||||
{
|
||||
private const string DefaultEncoderPath = "ffmpeg";
|
||||
|
||||
private static readonly string[] _requiredDecoders = new[]
|
||||
{
|
||||
"h264",
|
||||
@@ -106,7 +104,7 @@ namespace MediaBrowser.MediaEncoding.Encoder
|
||||
|
||||
private readonly string _encoderPath;
|
||||
|
||||
public EncoderValidator(ILogger logger, string encoderPath = DefaultEncoderPath)
|
||||
public EncoderValidator(ILogger logger, string encoderPath)
|
||||
{
|
||||
_logger = logger;
|
||||
_encoderPath = encoderPath;
|
||||
|
||||
Reference in New Issue
Block a user