mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-08-04 07:10:45 +00:00
update .net core startup
This commit is contained in:
parent
3c55747cd6
commit
0e9cd51f9c
38 changed files with 355 additions and 325 deletions
|
|
@ -37,15 +37,12 @@ namespace MediaBrowser.MediaEncoding.Encoder
|
|||
{
|
||||
output = GetProcessOutput(encoderAppPath, "-version");
|
||||
}
|
||||
catch
|
||||
catch (Exception ex)
|
||||
{
|
||||
}
|
||||
|
||||
output = output ?? string.Empty;
|
||||
|
||||
if (logOutput)
|
||||
{
|
||||
_logger.Info("ffmpeg info: {0}", output);
|
||||
if (logOutput)
|
||||
{
|
||||
_logger.ErrorException("Error validating encoder", ex);
|
||||
}
|
||||
}
|
||||
|
||||
if (string.IsNullOrWhiteSpace(output))
|
||||
|
|
@ -53,6 +50,11 @@ namespace MediaBrowser.MediaEncoding.Encoder
|
|||
return false;
|
||||
}
|
||||
|
||||
if (logOutput)
|
||||
{
|
||||
_logger.Info("ffmpeg info: {0}", output);
|
||||
}
|
||||
|
||||
if (output.IndexOf("Libav developers", StringComparison.OrdinalIgnoreCase) != -1)
|
||||
{
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue