aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Model/Dlna
diff options
context:
space:
mode:
authorMark Monteiro <marknr.monteiro@protonmail.com>2020-04-11 10:00:39 -0400
committerMark Monteiro <marknr.monteiro@protonmail.com>2020-04-11 10:00:39 -0400
commit1e1295bebfb37eb18d3704a903dd3de1d3e602f6 (patch)
tree0c238786e6d833ecc29cf68f06baa6cb5f92cbab /MediaBrowser.Model/Dlna
parentf91f2ef328a9d7693956ab33bf5c70be2f1213df (diff)
parent299541f1b26136ef89741f28c7949cda4e5e485f (diff)
Merge remote-tracking branch 'upstream/master' into register-services-correctly
Diffstat (limited to 'MediaBrowser.Model/Dlna')
-rw-r--r--MediaBrowser.Model/Dlna/DirectPlayProfile.cs4
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);
}
}
}