mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
Use string.Equals
Co-authored-by: Bond-009 <bond.009@outlook.com>
This commit is contained in:
parent
cb7714a32e
commit
855215673a
@ -130,7 +130,7 @@ namespace MediaBrowser.Model.Dlna
|
|||||||
var supportedHlsContainers = new[] { "ts", "mp4" };
|
var supportedHlsContainers = new[] { "ts", "mp4" };
|
||||||
// If the container specified for the profile is an HLS supported container, use that container instead, overriding the preference
|
// If the container specified for the profile is an HLS supported container, use that container instead, overriding the preference
|
||||||
// The client should be responsible to ensure this container is compatible
|
// The client should be responsible to ensure this container is compatible
|
||||||
remuxContainer = Array.Exists(supportedHlsContainers, element => element == directPlayInfo.Profile?.Container) ? directPlayInfo.Profile?.Container : remuxContainer;
|
remuxContainer = Array.Exists(supportedHlsContainers, element => string.Equals(element, directPlayInfo.Profile?.Container, StringComparison.OrdinalIgnoreCase)) ? directPlayInfo.Profile?.Container : remuxContainer;
|
||||||
bool codeIsSupported;
|
bool codeIsSupported;
|
||||||
if (item.TranscodingSubProtocol == MediaStreamProtocol.hls)
|
if (item.TranscodingSubProtocol == MediaStreamProtocol.hls)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user