Merge pull request #4905 from BaronGreenback/streamingHelper

Null exception fix

(cherry picked from commit 9a10a18db1)
Signed-off-by: Joshua M. Boniface <joshua@boniface.me>
pull/5296/head
Bond-009 4 years ago committed by Joshua M. Boniface
parent d5a7478600
commit 34053b7259

@ -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)

Loading…
Cancel
Save