Use case insensitive contains (2)

Co-Authored-By: Bond-009 <bond.009@outlook.com>
pull/2099/head
cryptobank 5 years ago committed by Petr Janda
parent 867b61025d
commit 802a66a9e6

@ -475,7 +475,7 @@ namespace MediaBrowser.Controller.MediaEncoding
if (encodingOptions.EnableHardwareEncoding && outputVideoCodec.Contains("qsv", StringComparison.OrdinalIgnoreCase))
{
if (!string.IsNullOrEmpty(videoDecoder) && videoDecoder.Contains("qsv"))
if (!string.IsNullOrEmpty(videoDecoder) && videoDecoder.Contains("qsv", StringComparison.OrdinalIgnoreCase))
{
arg.Append("-hwaccel qsv ");
}

Loading…
Cancel
Save