diff options
| author | gnattu <gnattu@users.noreply.github.com> | 2024-07-18 17:50:19 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-18 17:50:19 +0800 |
| commit | 855215673a113268565065b100797e2f73636c0f (patch) | |
| tree | 3aa3d53dfe97a811903e8c1b88352c1fd05824a5 | |
| parent | cb7714a32e8c544cacbe11b7999cfd8932443d16 (diff) | |
Use string.Equals
Co-authored-by: Bond-009 <bond.009@outlook.com>
| -rw-r--r-- | MediaBrowser.Model/Dlna/StreamBuilder.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/MediaBrowser.Model/Dlna/StreamBuilder.cs b/MediaBrowser.Model/Dlna/StreamBuilder.cs index d9520b2e5..2868521a7 100644 --- a/MediaBrowser.Model/Dlna/StreamBuilder.cs +++ b/MediaBrowser.Model/Dlna/StreamBuilder.cs @@ -130,7 +130,7 @@ namespace MediaBrowser.Model.Dlna var supportedHlsContainers = new[] { "ts", "mp4" }; // 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 - 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; if (item.TranscodingSubProtocol == MediaStreamProtocol.hls) { |
