The Free Software Media System - Server Backend & API
Renamed Init() to SetFFmpegPath()
PloughPuff2617a49b78c9
diff --git a/Emby.Server.Implementations/ApplicationHost.cs b/Emby.Server.Implementations/ApplicationHost.csindex dd29f2adec..325df32931 100644--- a/Emby.Server.Implementations/ApplicationHost.cs+++ b/Emby.Server.Implementations/ApplicationHost.cs@@ -534,7 +534,7 @@ namespace Emby.Server.ImplementationsConfigurationManager.ConfigurationUpdated += OnConfigurationUpdated;- MediaEncoder.Init();+ MediaEncoder.SetFFmpegPath();//if (string.IsNullOrWhiteSpace(MediaEncoder.EncoderPath))//{diff --git a/MediaBrowser.Controller/MediaEncoding/IMediaEncoder.cs b/MediaBrowser.Controller/MediaEncoding/IMediaEncoder.csindex 8852dac051..d4ac3b7c37 100644--- a/MediaBrowser.Controller/MediaEncoding/IMediaEncoder.cs+++ b/MediaBrowser.Controller/MediaEncoding/IMediaEncoder.cs@@ -92,7 +92,7 @@ namespace MediaBrowser.Controller.MediaEncoding/// <returns>System.String.</returns>string EscapeSubtitleFilterPath(string path);- void Init();+ void SetFFmpegPath();void UpdateEncoderPath(string path, string pathType);bool SupportsEncoder(string encoder);diff --git a/MediaBrowser.MediaEncoding/Encoder/MediaEncoder.cs b/MediaBrowser.MediaEncoding/Encoder/MediaEncoder.csindex 51b4f6e393..2924577888 100644--- a/MediaBrowser.MediaEncoding/Encoder/MediaEncoder.cs+++ b/MediaBrowser.MediaEncoding/Encoder/MediaEncoder.cs@@ -84,7 +84,7 @@ namespace MediaBrowser.MediaEncoding.Encoder/// Sets global variables FFmpegPath./// Precedence is: Config > CLI > $PATH/// </summary>- public void Init()+ public void SetFFmpegPath(){// ToDo - Finalise removal of the --ffprobe switchif (!string.IsNullOrEmpty(StartupOptionFFprobePath))@@ -169,8 +169,8 @@ namespace MediaBrowser.MediaEncoding.Encoderconfig.EncoderAppPath = newPath;ConfigurationManager.SaveConfiguration("encoding", config);- // Trigger Init so we validate the new path and setup probe path- Init();+ // Trigger SetFFmpegPath so we validate the new path and setup probe path+ SetFFmpegPath();}/// <summary>