mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
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>
This commit is contained in:
parent
3ec18f085e
commit
b43a8a56dc
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user