mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-03-14 06:06:41 +00:00
Prevent server from starting if the ffmpeg path is invalid (#12463)
This commit is contained in:
@@ -402,7 +402,12 @@ namespace Emby.Server.Implementations
|
||||
ConfigurationManager.ConfigurationUpdated += OnConfigurationUpdated;
|
||||
ConfigurationManager.NamedConfigurationUpdated += OnConfigurationUpdated;
|
||||
|
||||
Resolve<IMediaEncoder>().SetFFmpegPath();
|
||||
var ffmpegValid = Resolve<IMediaEncoder>().SetFFmpegPath();
|
||||
|
||||
if (!ffmpegValid)
|
||||
{
|
||||
throw new FfmpegException("Failed to find valid ffmpeg");
|
||||
}
|
||||
|
||||
Logger.LogInformation("ServerId: {ServerId}", SystemId);
|
||||
Logger.LogInformation("Core startup complete");
|
||||
|
||||
@@ -19,7 +19,8 @@ namespace Emby.Server.Implementations
|
||||
{ FfmpegAnalyzeDurationKey, "200M" },
|
||||
{ PlaylistsAllowDuplicatesKey, bool.FalseString },
|
||||
{ BindToUnixSocketKey, bool.FalseString },
|
||||
{ SqliteCacheSizeKey, "20000" }
|
||||
{ SqliteCacheSizeKey, "20000" },
|
||||
{ FfmpegSkipValidationKey, bool.FalseString }
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user