mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-01-20 10:08:04 +00:00
add startup error handling
This commit is contained in:
@@ -132,7 +132,20 @@ namespace MediaBrowser.MediaEncoding.Encoder
|
||||
return false;
|
||||
}
|
||||
|
||||
public void Init()
|
||||
public async Task Init()
|
||||
{
|
||||
InitPaths();
|
||||
|
||||
if (!string.IsNullOrWhiteSpace(FFMpegPath))
|
||||
{
|
||||
var result = new EncoderValidator(_logger).Validate(FFMpegPath);
|
||||
|
||||
SetAvailableDecoders(result.Item1);
|
||||
SetAvailableEncoders(result.Item2);
|
||||
}
|
||||
}
|
||||
|
||||
private void InitPaths()
|
||||
{
|
||||
ConfigureEncoderPaths();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user