aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBond-009 <bond.009@outlook.com>2021-01-01 18:21:21 +0100
committerJoshua M. Boniface <joshua@boniface.me>2021-02-21 13:29:02 -0500
commit34053b7259aa381af671885eff6edd8a7de53e83 (patch)
treeb1b72885654d360bbaaf645272fe033a1f06d739
parentd5a74786006bdeebe5cd898b4e507b8b6d252dca (diff)
Merge pull request #4905 from BaronGreenback/streamingHelper
Null exception fix (cherry picked from commit 9a10a18db1654d5180267f03c72e45abd21165ce) Signed-off-by: Joshua M. Boniface <joshua@boniface.me>
-rw-r--r--Jellyfin.Api/Helpers/StreamingHelpers.cs1
1 files changed, 1 insertions, 0 deletions
diff --git a/Jellyfin.Api/Helpers/StreamingHelpers.cs b/Jellyfin.Api/Helpers/StreamingHelpers.cs
index c6d844c4f..4957ee8b8 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)