mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-08-03 22:40:09 +00:00
add startup error handling
This commit is contained in:
parent
cbeb77c0ad
commit
525f780453
8 changed files with 39 additions and 37 deletions
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue