diff options
| author | Maxr1998 <max.rumpf1998@gmail.com> | 2021-05-05 12:25:54 +0200 |
|---|---|---|
| committer | Maxr1998 <max.rumpf1998@gmail.com> | 2021-05-05 12:25:54 +0200 |
| commit | 65a9a4771afc5b6b7c956f7b799586400b23af8b (patch) | |
| tree | fbf107c4938ac1774e2d85643188d7142dface5e /MediaBrowser.Model/Dlna/ContainerProfile.cs | |
| parent | 48e81e65e8948fa61980744932eb4103a28ed876 (diff) | |
Fix direct play for DirectPlayProfiles without any codecs set
70771fdcd60ec5d8a9f13713662778c7e57d0633 broke direct play by treating empty container/codec strings as unsupported in `ContainerProfile.ContainsContainer()`` (which is also used for video and audio codec checks). Instead, they should be treated as supported, for both the positive and negative list option.
Diffstat (limited to 'MediaBrowser.Model/Dlna/ContainerProfile.cs')
| -rw-r--r-- | MediaBrowser.Model/Dlna/ContainerProfile.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/MediaBrowser.Model/Dlna/ContainerProfile.cs b/MediaBrowser.Model/Dlna/ContainerProfile.cs index c66ec8bc3..b059e43f3 100644 --- a/MediaBrowser.Model/Dlna/ContainerProfile.cs +++ b/MediaBrowser.Model/Dlna/ContainerProfile.cs @@ -55,7 +55,8 @@ namespace MediaBrowser.Model.Dlna { if (profileContainers == null || profileContainers.Length == 0) { - return isNegativeList; + // Empty profiles always support all containers/codecs + return true; } var allInputContainers = SplitValue(inputContainer); |
