diff options
| author | Bond_009 <bond.009@outlook.com> | 2021-04-04 23:02:28 +0200 |
|---|---|---|
| committer | Bond_009 <bond.009@outlook.com> | 2021-08-30 15:40:52 +0200 |
| commit | 963ab2dab6a8c4dafadae61312b36ed5fbb1f323 (patch) | |
| tree | 0224812fb2f3cce08e36fe2519adc8d105631aed /MediaBrowser.MediaEncoding/Encoder/EncoderValidator.cs | |
| parent | 32a11c006dfe93d569910b842bc7770d056d9eba (diff) | |
Simplify the way we choose our ffmpeg
* no longer search $PATH
* no longer require a full path
* don't fall back
Diffstat (limited to 'MediaBrowser.MediaEncoding/Encoder/EncoderValidator.cs')
| -rw-r--r-- | MediaBrowser.MediaEncoding/Encoder/EncoderValidator.cs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/MediaBrowser.MediaEncoding/Encoder/EncoderValidator.cs b/MediaBrowser.MediaEncoding/Encoder/EncoderValidator.cs index f782e65bd..ef831ab82 100644 --- a/MediaBrowser.MediaEncoding/Encoder/EncoderValidator.cs +++ b/MediaBrowser.MediaEncoding/Encoder/EncoderValidator.cs @@ -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; |
