mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-08-03 22:40:09 +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:
parent
32a11c006d
commit
963ab2dab6
6 changed files with 39 additions and 90 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue