aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordkanada <dkanada@users.noreply.github.com>2020-04-08 01:04:31 +0900
committerJoshua M. Boniface <joshua@boniface.me>2020-04-12 15:52:39 -0400
commitb43a8a56dc143c9355fc7b84b11f4cc484a3d57d (patch)
tree719169beaed8526ac643acf83d5ba58a902edf5f
parent3ec18f085e63e6effa499836951b95f26efa4f69 (diff)
Merge pull request #2796 from JustAMan/fix-transcode-reasons
Make codec check in profile examine profile type first (cherry picked from commit aeedd06f51b27074f7e08470e8a3e7e3a7b75e7c) Signed-off-by: Joshua M. Boniface <joshua@boniface.me>
-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 fc74c9afc..d5b4ac341 100644
--- a/MediaBrowser.Model/Dlna/DirectPlayProfile.cs
+++ b/MediaBrowser.Model/Dlna/DirectPlayProfile.cs
@@ -26,12 +26,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);
}
}
}