diff options
| author | zachhide <66033020+zachhide@users.noreply.github.com> | 2026-06-30 01:13:51 -0400 |
|---|---|---|
| committer | zachhide <66033020+zachhide@users.noreply.github.com> | 2026-06-30 01:13:51 -0400 |
| commit | 8ffb54603adf45975568702ca8a9d69bfe444d75 (patch) | |
| tree | 2373ad8b704a03f8b10298f109bf7ee51bfa377b /Emby.Server.Implementations/TextEncoding/NLangDetect/Profiles/ron | |
| parent | d3ee1e84b102177e2c368426e3b5ad1dba589b44 (diff) | |
Fix NullReferenceException in GetStreamingState for closed live streams
When a client polls the HLS playlist (e.g. live.m3u8) after a live stream has
been disposed because its consumer count dropped to zero,
GetLiveStreamWithDirectStreamProvider returns a null MediaSource. The live
branch of GetStreamingState then dereferenced it unconditionally, throwing a
NullReferenceException and returning HTTP 500 for every poll until the client
re-opens the stream. Guard against the null MediaSource and throw
ResourceNotFoundException so the request returns 404 instead of crashing.
Fixes #17009
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'Emby.Server.Implementations/TextEncoding/NLangDetect/Profiles/ron')
0 files changed, 0 insertions, 0 deletions
