Fixed possible NullReferenceException in SessionManager (#12915)

pull/12935/head
JPVenson 4 months ago committed by GitHub
parent f99e0407fd
commit 3592c629e7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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…
Cancel
Save