mirror of
https://github.com/mpv-player/mpv
synced 2025-03-30 23:38:10 +00:00
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:
parent
7eacaf51f8
commit
e89382f5f6
@ -155,6 +155,7 @@ static int cuda_create(struct gl_hwdec *hw)
|
|||||||
bool loaded = cuda_load();
|
bool loaded = cuda_load();
|
||||||
if (!loaded) {
|
if (!loaded) {
|
||||||
MP_ERR(hw, "Failed to load CUDA symbols\n");
|
MP_ERR(hw, "Failed to load CUDA symbols\n");
|
||||||
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = CHECK_CU(cuInit(0));
|
ret = CHECK_CU(cuInit(0));
|
||||||
|
Loading…
Reference in New Issue
Block a user