diff options
| author | Bond_009 <bond.009@outlook.com> | 2023-03-07 21:51:48 +0100 |
|---|---|---|
| committer | Bond_009 <bond.009@outlook.com> | 2023-03-07 21:51:48 +0100 |
| commit | dab75d35d2648ff8717aa6dc08eed1db640aea40 (patch) | |
| tree | c7e6916e3f6b58b7bf6b868e594735d3f8cb85be /MediaBrowser.Model/Dlna/DirectPlayProfile.cs | |
| parent | 1244502fa859ba58c8a2129e87036c11a60748e4 (diff) | |
Enable nullable for more files
Diffstat (limited to 'MediaBrowser.Model/Dlna/DirectPlayProfile.cs')
| -rw-r--r-- | MediaBrowser.Model/Dlna/DirectPlayProfile.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/MediaBrowser.Model/Dlna/DirectPlayProfile.cs b/MediaBrowser.Model/Dlna/DirectPlayProfile.cs index 03c3a7265..f68235d86 100644 --- a/MediaBrowser.Model/Dlna/DirectPlayProfile.cs +++ b/MediaBrowser.Model/Dlna/DirectPlayProfile.cs @@ -18,17 +18,17 @@ namespace MediaBrowser.Model.Dlna [XmlAttribute("type")] public DlnaProfileType Type { get; set; } - public bool SupportsContainer(string container) + public bool SupportsContainer(string? container) { return ContainerProfile.ContainsContainer(Container, container); } - public bool SupportsVideoCodec(string codec) + public bool SupportsVideoCodec(string? codec) { return Type == DlnaProfileType.Video && ContainerProfile.ContainsContainer(VideoCodec, codec); } - public bool SupportsAudioCodec(string codec) + public bool SupportsAudioCodec(string? codec) { return (Type == DlnaProfileType.Audio || Type == DlnaProfileType.Video) && ContainerProfile.ContainsContainer(AudioCodec, codec); } |
