aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Controller/Extensions
diff options
context:
space:
mode:
Diffstat (limited to 'MediaBrowser.Controller/Extensions')
-rw-r--r--MediaBrowser.Controller/Extensions/ConfigurationExtensions.cs13
1 files changed, 13 insertions, 0 deletions
diff --git a/MediaBrowser.Controller/Extensions/ConfigurationExtensions.cs b/MediaBrowser.Controller/Extensions/ConfigurationExtensions.cs
index 7ca508426..f8049cd48 100644
--- a/MediaBrowser.Controller/Extensions/ConfigurationExtensions.cs
+++ b/MediaBrowser.Controller/Extensions/ConfigurationExtensions.cs
@@ -40,6 +40,11 @@ namespace MediaBrowser.Controller.Extensions
public const string FfmpegAnalyzeDurationKey = "FFmpeg:analyzeduration";
/// <summary>
+ /// The key for the FFmpeg image extraction performance tradeoff option.
+ /// </summary>
+ public const string FfmpegImgExtractPerfTradeoffKey = "FFmpeg:imgExtractPerfTradeoff";
+
+ /// <summary>
/// The key for the FFmpeg path option.
/// </summary>
public const string FfmpegPathKey = "ffmpeg";
@@ -108,6 +113,14 @@ namespace MediaBrowser.Controller.Extensions
=> configuration.GetValue<bool>(FfmpegSkipValidationKey);
/// <summary>
+ /// Gets a value indicating whether the server should trade off for performance during FFmpeg image extraction.
+ /// </summary>
+ /// <param name="configuration">The configuration to read the setting from.</param>
+ /// <returns><c>true</c> if the server should trade off for performance during FFmpeg image extraction, otherwise <c>false</c>.</returns>
+ public static bool GetFFmpegImgExtractPerfTradeoff(this IConfiguration configuration)
+ => configuration.GetValue<bool>(FfmpegImgExtractPerfTradeoffKey);
+
+ /// <summary>
/// Gets a value indicating whether playlists should allow duplicate entries from the <see cref="IConfiguration"/>.
/// </summary>
/// <param name="configuration">The configuration to read the setting from.</param>