From 5b5d527a09a94ef847c60578306c858fe6feff89 Mon Sep 17 00:00:00 2001 From: cryptobank Date: Sat, 7 Dec 2019 06:47:57 +1030 Subject: [PATCH] Use string.Equals instead of of equals operator Co-Authored-By: Vasily --- MediaBrowser.Api/Playback/Hls/DynamicHlsService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MediaBrowser.Api/Playback/Hls/DynamicHlsService.cs b/MediaBrowser.Api/Playback/Hls/DynamicHlsService.cs index 3207a6882..e3bd3c8c9 100644 --- a/MediaBrowser.Api/Playback/Hls/DynamicHlsService.cs +++ b/MediaBrowser.Api/Playback/Hls/DynamicHlsService.cs @@ -948,7 +948,7 @@ namespace MediaBrowser.Api.Playback.Hls args += " " + EncodingHelper.GetVideoQualityParam(state, codec, encodingOptions, GetDefaultEncoderPreset()); // Unable to force key frames to h264_qsv transcode - if (codec == "h264_qsv") { + if (string.Equals(codec, "h264_qsv", StringComparison.OrdinalIgnoreCase)) { Logger.LogInformation("Bug Workaround: Disabling force_key_frames for h264_qsv"); } else