浏览代码

Update StreamingHelpers.cs

Null exception fix
BaronGreenback 4 年之前
父节点
当前提交
11700db312
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      Jellyfin.Api/Helpers/StreamingHelpers.cs

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

@@ -210,6 +210,7 @@ namespace Jellyfin.Api.Helpers
                         && !state.VideoRequest.MaxHeight.HasValue;
 
                     if (isVideoResolutionNotRequested
+                        && state.VideoStream != null
                         && state.VideoRequest.VideoBitRate.HasValue
                         && state.VideoStream.BitRate.HasValue
                         && state.VideoRequest.VideoBitRate.Value >= state.VideoStream.BitRate.Value)