From b43a8a56dc143c9355fc7b84b11f4cc484a3d57d Mon Sep 17 00:00:00 2001 From: dkanada Date: Wed, 8 Apr 2020 01:04:31 +0900 Subject: [PATCH] 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 --- MediaBrowser.Model/Dlna/DirectPlayProfile.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MediaBrowser.Model/Dlna/DirectPlayProfile.cs b/MediaBrowser.Model/Dlna/DirectPlayProfile.cs index fc74c9afca..d5b4ac3414 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); } } }