mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-07-29 00:49:05 +02:00
Use case insensitive contains (1)
Co-Authored-By: Bond-009 <bond.009@outlook.com>
This commit is contained in:
parent
f18d3ed33b
commit
867b61025d
|
@ -473,7 +473,7 @@ namespace MediaBrowser.Controller.MediaEncoding
|
||||||
var videoDecoder = GetHardwareAcceleratedVideoDecoder(state, encodingOptions);
|
var videoDecoder = GetHardwareAcceleratedVideoDecoder(state, encodingOptions);
|
||||||
var outputVideoCodec = GetVideoEncoder(state, encodingOptions);
|
var outputVideoCodec = GetVideoEncoder(state, encodingOptions);
|
||||||
|
|
||||||
if (encodingOptions.EnableHardwareEncoding && outputVideoCodec.Contains("qsv"))
|
if (encodingOptions.EnableHardwareEncoding && outputVideoCodec.Contains("qsv", StringComparison.OrdinalIgnoreCase))
|
||||||
{
|
{
|
||||||
if (!string.IsNullOrEmpty(videoDecoder) && videoDecoder.Contains("qsv"))
|
if (!string.IsNullOrEmpty(videoDecoder) && videoDecoder.Contains("qsv"))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue