diff options
| author | Nyanmisaka <nst799610810@gmail.com> | 2020-04-10 22:08:49 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-10 22:08:49 +0800 |
| commit | bfd87829e3bca42a245287b99e652d091b21c990 (patch) | |
| tree | b71b307057aef887401932259f0ee875f5aa6746 /MediaBrowser.Model/Dlna | |
| parent | 645363810370504361cecd5ce4c529343ed28833 (diff) | |
| parent | ec2e9d52badbce6d0c46abd2a14b77f215cfb4b0 (diff) | |
Merge pull request #2 from jellyfin/master
merge
Diffstat (limited to 'MediaBrowser.Model/Dlna')
| -rw-r--r-- | MediaBrowser.Model/Dlna/DirectPlayProfile.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/MediaBrowser.Model/Dlna/DirectPlayProfile.cs b/MediaBrowser.Model/Dlna/DirectPlayProfile.cs index a5947bbf49..b43f8633ec 100644 --- a/MediaBrowser.Model/Dlna/DirectPlayProfile.cs +++ b/MediaBrowser.Model/Dlna/DirectPlayProfile.cs @@ -25,12 +25,12 @@ namespace MediaBrowser.Model.Dlna public bool SupportsVideoCodec(string codec) { - return ContainerProfile.ContainsContainer(VideoCodec, codec); + return Type == DlnaProfileType.Video && ContainerProfile.ContainsContainer(VideoCodec, codec); } public bool SupportsAudioCodec(string codec) { - return ContainerProfile.ContainsContainer(AudioCodec, codec); + return (Type == DlnaProfileType.Audio || Type == DlnaProfileType.Video) && ContainerProfile.ContainsContainer(AudioCodec, codec); } } } |
