filter/video-superresolution: Catch all exceptions
This commit is contained in:
		
							parent
							
								
									33c665982e
								
							
						
					
					
						commit
						496fe424f4
					
				|  | @ -504,6 +504,12 @@ video_superresolution_factory::video_superresolution_factory() | ||||||
| 		_nvcvi.reset(); | 		_nvcvi.reset(); | ||||||
| 		_nvcuda.reset(); | 		_nvcuda.reset(); | ||||||
| 		D_LOG_WARNING("Failed to make NVIDIA Super-Resolution available due to error: %s", ex.what()); | 		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 | #endif | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue