From 34053b7259aa381af671885eff6edd8a7de53e83 Mon Sep 17 00:00:00 2001 From: Bond-009 Date: Fri, 1 Jan 2021 18:21:21 +0100 Subject: [PATCH] Merge pull request #4905 from BaronGreenback/streamingHelper Null exception fix (cherry picked from commit 9a10a18db1654d5180267f03c72e45abd21165ce) Signed-off-by: Joshua M. Boniface --- Jellyfin.Api/Helpers/StreamingHelpers.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Jellyfin.Api/Helpers/StreamingHelpers.cs b/Jellyfin.Api/Helpers/StreamingHelpers.cs index c6d844c4fe..4957ee8b8d 100644 --- a/Jellyfin.Api/Helpers/StreamingHelpers.cs +++ b/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)