瀏覽代碼

Update StreamingHelpers.cs

Updated condition
BaronGreenback 4 年之前
父節點
當前提交
84da57cd48
共有 1 個文件被更改,包括 1 次插入4 次删除
  1. 1 4
      Jellyfin.Api/Helpers/StreamingHelpers.cs

+ 1 - 4
Jellyfin.Api/Helpers/StreamingHelpers.cs

@@ -510,10 +510,7 @@ namespace Jellyfin.Api.Helpers
         {
         {
             if (!string.IsNullOrWhiteSpace(deviceProfileId))
             if (!string.IsNullOrWhiteSpace(deviceProfileId))
             {
             {
-                if (state.DeviceProfile == null)
-                {
-                    state.DeviceProfile = dlnaManager.GetProfile(deviceProfileId);
-                }
+                state.DeviceProfile = dlnaManager.GetProfile(deviceProfileId);
 
 
                 if (state.DeviceProfile == null)
                 if (state.DeviceProfile == null)
                 {
                 {