mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-01-15 23:58:57 +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");
|
||||
|
||||
Reference in New Issue
Block a user