mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-06-10 17:14:44 -04:00
Backport pull request #12915 from jellyfin/release-10.10.z
Fixed possible NullReferenceException in SessionManager Original-merge: 3592c629e78e80c9d2fc9e368c5d61a11c1bf688 Merged-by: crobibero <cody@robibe.ro> Backported-by: Joshua M. Boniface <joshua@boniface.me>
This commit is contained in:
parent
510312045a
commit
d81fec6b7c
@ -1938,7 +1938,11 @@ namespace Emby.Server.Implementations.Session
|
|||||||
// Don't report acceleration type for non-admin users.
|
// Don't report acceleration type for non-admin users.
|
||||||
result = result.Select(r =>
|
result = result.Select(r =>
|
||||||
{
|
{
|
||||||
r.TranscodingInfo.HardwareAccelerationType = HardwareAccelerationType.none;
|
if (r.TranscodingInfo is not null)
|
||||||
|
{
|
||||||
|
r.TranscodingInfo.HardwareAccelerationType = HardwareAccelerationType.none;
|
||||||
|
}
|
||||||
|
|
||||||
return r;
|
return r;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user