aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordkanada <dkanada@users.noreply.github.com>2020-04-08 01:04:31 +0900
committerGitHub <noreply@github.com>2020-04-08 01:04:31 +0900
commitaeedd06f51b27074f7e08470e8a3e7e3a7b75e7c (patch)
tree8fed1ccff84f01a53bbaec208ed055aaa327bf02
parent5cff79ea3870fd53973734eae0335f0c4e1ad357 (diff)
parent8e514f8d637f5e3037949b796453f4c18899912a (diff)
Merge pull request #2796 from JustAMan/fix-transcode-reasons
Make codec check in profile examine profile type first
-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 a5947bbf4..b43f8633e 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);
}
}
}