mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-15 13:33:04 +03:00
update .net core startup
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user