Quellcode durchsuchen

Use string.Equals

Co-authored-by: Bond-009 <bond.009@outlook.com>
gnattu vor 1 Jahr
Ursprung
Commit
855215673a
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      MediaBrowser.Model/Dlna/StreamBuilder.cs

+ 1 - 1
MediaBrowser.Model/Dlna/StreamBuilder.cs

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