From 6c8ca30f7fc02170901a969c71dc35ec8992ad02 Mon Sep 17 00:00:00 2001 From: gnattu Date: Thu, 29 Aug 2024 02:43:37 +0800 Subject: Prevent server from starting if the ffmpeg path is invalid (#12463) --- MediaBrowser.Controller/MediaEncoding/IMediaEncoder.cs | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'MediaBrowser.Controller/MediaEncoding') diff --git a/MediaBrowser.Controller/MediaEncoding/IMediaEncoder.cs b/MediaBrowser.Controller/MediaEncoding/IMediaEncoder.cs index 038c6c7f6..e36106e52 100644 --- a/MediaBrowser.Controller/MediaEncoding/IMediaEncoder.cs +++ b/MediaBrowser.Controller/MediaEncoding/IMediaEncoder.cs @@ -223,14 +223,8 @@ namespace MediaBrowser.Controller.MediaEncoding /// /// Sets the path to find FFmpeg. /// - void SetFFmpegPath(); - - /// - /// Updates the encoder path. - /// - /// The path. - /// The type of path. - void UpdateEncoderPath(string path, string pathType); + /// bool indicates whether a valid ffmpeg is found. + bool SetFFmpegPath(); /// /// Gets the primary playlist of .vob files. -- cgit v1.2.3