Selaa lähdekoodia

Update StreamingHelpers.cs

Null exception fix
BaronGreenback 4 vuotta sitten
vanhempi
sitoutus
11700db312
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  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;
                         && !state.VideoRequest.MaxHeight.HasValue;
 
 
                     if (isVideoResolutionNotRequested
                     if (isVideoResolutionNotRequested
+                        && state.VideoStream != null
                         && state.VideoRequest.VideoBitRate.HasValue
                         && state.VideoRequest.VideoBitRate.HasValue
                         && state.VideoStream.BitRate.HasValue
                         && state.VideoStream.BitRate.HasValue
                         && state.VideoRequest.VideoBitRate.Value >= state.VideoStream.BitRate.Value)
                         && state.VideoRequest.VideoBitRate.Value >= state.VideoStream.BitRate.Value)