|
|
|
@ -151,6 +151,10 @@ public partial class HardwareCapabilitiesFactory( |
|
|
|
{ |
|
|
|
{ |
|
|
|
// do nothing
|
|
|
|
// do nothing
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
catch (TypeInitializationException) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
// do nothing
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// if we don't have a list of cuda devices, fall back to ffmpeg check
|
|
|
|
// if we don't have a list of cuda devices, fall back to ffmpeg check
|
|
|
|
|
|
|
|
|
|
|
|
@ -644,6 +648,10 @@ public partial class HardwareCapabilitiesFactory( |
|
|
|
{ |
|
|
|
{ |
|
|
|
// do nothing
|
|
|
|
// do nothing
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
catch (TypeInitializationException) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
// do nothing
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
logger.LogWarning( |
|
|
|
logger.LogWarning( |
|
|
|
"Error detecting NVIDIA GPU capabilities; some hardware accelerated features will be unavailable"); |
|
|
|
"Error detecting NVIDIA GPU capabilities; some hardware accelerated features will be unavailable"); |
|
|
|
|