浏览代码

Fix ArgumentOutOfRangeException when getting PostedPlaybackInfo

DeeJayBro 3 年之前
父节点
当前提交
0ad62e7af9
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      Jellyfin.Api/Controllers/MediaInfoController.cs

+ 5 - 0
Jellyfin.Api/Controllers/MediaInfoController.cs

@@ -161,6 +161,11 @@ namespace Jellyfin.Api.Controllers
                     liveStreamId)
                 .ConfigureAwait(false);
 
+            if (info.ErrorCode != null)
+            {
+                return info;
+            }
+
             if (profile != null)
             {
                 // set device specific data