Browse Source

fix nvidia startup errors on arm64 (#2505)

pull/2506/head
Jason Dove 10 months ago committed by GitHub
parent
commit
dba5485300
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 3
      CHANGELOG.md
  2. 7
      ErsatzTV.FFmpeg/Capabilities/Nvidia/NvEncSharpRedirector.cs

3
CHANGELOG.md

@ -4,6 +4,8 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
## [Unreleased] ## [Unreleased]
### Fixed
- Fix NVIDIA startup errors on arm64
## [25.7.1] - 2025-10-09 ## [25.7.1] - 2025-10-09
### Added ### Added
@ -22,6 +24,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
### Changed ### Changed
- Use table instead of tree view on blocks page - Use table instead of tree view on blocks page
- Use different release packaging system to workaround false positive from Windows Defender
## [25.7.0] - 2025-10-03 ## [25.7.0] - 2025-10-03
### Added ### Added

7
ErsatzTV.FFmpeg/Capabilities/Nvidia/NvEncSharpRedirector.cs

@ -6,9 +6,16 @@ namespace ErsatzTV.FFmpeg.Capabilities.Nvidia;
public static class NvEncSharpRedirector public static class NvEncSharpRedirector
{ {
static NvEncSharpRedirector() static NvEncSharpRedirector()
{
try
{ {
NativeLibrary.SetDllImportResolver(typeof(Lennox.NvEncSharp.LibCuda).Assembly, Resolver); NativeLibrary.SetDllImportResolver(typeof(Lennox.NvEncSharp.LibCuda).Assembly, Resolver);
} }
catch (DllNotFoundException)
{
// do nothing
}
}
private static IntPtr Resolver(string libraryName, Assembly assembly, DllImportSearchPath? searchPath) private static IntPtr Resolver(string libraryName, Assembly assembly, DllImportSearchPath? searchPath)
{ {

Loading…
Cancel
Save