Explorar o código

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.
Maxr1998 %!s(int64=4) %!d(string=hai) anos
pai
achega
65a9a4771a
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      MediaBrowser.Model/Dlna/ContainerProfile.cs

+ 2 - 1
MediaBrowser.Model/Dlna/ContainerProfile.cs

@@ -55,7 +55,8 @@ namespace MediaBrowser.Model.Dlna
         {
         {
             if (profileContainers == null || profileContainers.Length == 0)
             if (profileContainers == null || profileContainers.Length == 0)
             {
             {
-                return isNegativeList;
+                // Empty profiles always support all containers/codecs
+                return true;
             }
             }
 
 
             var allInputContainers = SplitValue(inputContainer);
             var allInputContainers = SplitValue(inputContainer);