Use string.Equals instead of of equals operator

Co-Authored-By: Vasily <JustAMan@users.noreply.github.com>
This commit is contained in:
cryptobank 2019-12-07 06:47:57 +10:30 committed by GitHub
parent 68edb9734d
commit 5b5d527a09
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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