From 496fe424f454d33ddc270b105bd1970d8fb3ddd6 Mon Sep 17 00:00:00 2001 From: Michael Fabian 'Xaymar' Dirks Date: Sun, 4 Jul 2021 02:20:36 +0200 Subject: [PATCH] filter/video-superresolution: Catch all exceptions --- source/filters/filter-video-superresolution.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/source/filters/filter-video-superresolution.cpp b/source/filters/filter-video-superresolution.cpp index 0f41bf8..aa7be55 100644 --- a/source/filters/filter-video-superresolution.cpp +++ b/source/filters/filter-video-superresolution.cpp @@ -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