Explorar o código

Use string.Equals instead of of equals operator

Co-Authored-By: Vasily <JustAMan@users.noreply.github.com>
cryptobank %!s(int64=5) %!d(string=hai) anos
pai
achega
5b5d527a09
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      MediaBrowser.Api/Playback/Hls/DynamicHlsService.cs

+ 1 - 1
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