vo_opengl: hwdec_cuda: fix crash when trying to use hwdec=cuda if cuda SDK is not present

If CUDA SDK wasn't installed, mpv crashed immediately with the message "Failed to load CUDA symbols"
This commit is contained in:
pavelxdd 2016-11-24 15:11:44 +03:00 committed by wm4
parent 7eacaf51f8
commit e89382f5f6
1 changed files with 1 additions and 0 deletions

View File

@ -155,6 +155,7 @@ static int cuda_create(struct gl_hwdec *hw)
bool loaded = cuda_load();
if (!loaded) {
MP_ERR(hw, "Failed to load CUDA symbols\n");
return -1;
}
ret = CHECK_CU(cuInit(0));