浏览代码

Merge pull request #5980 from Maxr1998/fix-direct-play

Fix direct play for DirectPlayProfiles without any codecs set
Bond-009 4 年之前
父节点
当前提交
18d799b22a
共有 1 个文件被更改,包括 2 次插入1 次删除
  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);