mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-18 02:05:13 +01:00
Backport pull request #12915 from jellyfin/release-10.10.z
Fixed possible NullReferenceException in SessionManager
Original-merge: 3592c629e7
Merged-by: crobibero <cody@robibe.ro>
Backported-by: Joshua M. Boniface <joshua@boniface.me>
This commit is contained in:
parent
510312045a
commit
d81fec6b7c
1 changed files with 5 additions and 1 deletions
|
|
@ -1938,7 +1938,11 @@ namespace Emby.Server.Implementations.Session
|
|||
// Don't report acceleration type for non-admin users.
|
||||
result = result.Select(r =>
|
||||
{
|
||||
r.TranscodingInfo.HardwareAccelerationType = HardwareAccelerationType.none;
|
||||
if (r.TranscodingInfo is not null)
|
||||
{
|
||||
r.TranscodingInfo.HardwareAccelerationType = HardwareAccelerationType.none;
|
||||
}
|
||||
|
||||
return r;
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue