aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBaronGreenback <jimcartlidge@yahoo.co.uk>2021-01-01 00:25:47 +0000
committerGitHub <noreply@github.com>2021-01-01 00:25:47 +0000
commit11700db3123242eda03d72e1aca0740592005f4b (patch)
treeb8c0641e83be0c738f8a015106504b5a197fc9e8
parent21d2e9ff0cc0933484b2a7768d7a36446b36616a (diff)
Update StreamingHelpers.cs
Null exception fix
-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)