mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-16 05:43:54 +03:00
[PR #4905] [MERGED] Null exception fix #10328
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/jellyfin/jellyfin/pull/4905
Author: @BaronGreenback
Created: 1/1/2021
Status: ✅ Merged
Merged: 1/1/2021
Merged by: @Bond-009
Base:
master← Head:streamingHelper📝 Commits (1)
11700dbUpdate StreamingHelpers.cs📊 Changes
1 file changed (+1 additions, -0 deletions)
View changed files
📝
Jellyfin.Api/Helpers/StreamingHelpers.cs(+1 -0)📄 Description
Came across it during dlna server debugging last night. Not that clued up with what this code actually does (yet) - but it's something to do with playback.
state.VideoStream is a variable that can be null (definition not nullable yet), but there isn't a null check before the state.VideoStream.BitRate.HasValue check, causing an exception. Checks on state.VideoStream's nullable state seem to appear everywhere else.
adding this check, permits the playback to start.
Admittedly, i am using a codebase which is somewhat modified from 10.7's, but this looks to be possible in the current code base.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.