Pārlūkot izejas kodu

Merge pull request #4905 from BaronGreenback/streamingHelper

Null exception fix
Bond-009 4 gadi atpakaļ
vecāks
revīzija
9a10a18db1
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  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)