filter/video-superresolution: Catch all exceptions

This commit is contained in:
Michael Fabian 'Xaymar' Dirks 2021-07-04 02:20:36 +02:00
parent 33c665982e
commit 496fe424f4

View file

@ -504,6 +504,12 @@ video_superresolution_factory::video_superresolution_factory()
_nvcvi.reset();
_nvcuda.reset();
D_LOG_WARNING("Failed to make NVIDIA Super-Resolution available due to error: %s", ex.what());
} catch (...) {
_nvidia_available = false;
_nvvfx.reset();
_nvcvi.reset();
_nvcuda.reset();
D_LOG_WARNING("Failed to make NVIDIA Super-Resolution available.", nullptr);
}
#endif