mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-16 19:23:38 +01:00
Fix more analyzer warnings
This commit is contained in:
@@ -8,9 +8,12 @@ namespace MediaBrowser.Model.MediaInfo
|
||||
|
||||
public static string GetFriendlyName(string codec)
|
||||
{
|
||||
if (string.IsNullOrEmpty(codec)) return "";
|
||||
if (string.IsNullOrEmpty(codec))
|
||||
{
|
||||
return string.Empty;
|
||||
}
|
||||
|
||||
switch (codec.ToLower())
|
||||
switch (codec.ToLowerInvariant())
|
||||
{
|
||||
case "ac3":
|
||||
return "Dolby Digital";
|
||||
@@ -19,7 +22,7 @@ namespace MediaBrowser.Model.MediaInfo
|
||||
case "dca":
|
||||
return "DTS";
|
||||
default:
|
||||
return codec.ToUpper();
|
||||
return codec.ToUpperInvariant();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user