diff options
author | pavelxdd <pavel.otchertsov@gmail.com> | 2016-11-24 15:11:44 +0300 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-11-24 14:42:30 +0100 |
commit | e89382f5f6c42cc5f4872aa4135b69bc3f09cccf (patch) | |
tree | 51eb8e07d0236233211733b8a628cce0f7e15f28 /video/out/opengl | |
parent | 7eacaf51f80a081177b74580105cb22d5ad0c877 (diff) |
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"
Diffstat (limited to 'video/out/opengl')
-rw-r--r-- | video/out/opengl/hwdec_cuda.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/video/out/opengl/hwdec_cuda.c b/video/out/opengl/hwdec_cuda.c index 266714a972..dfb55e8ce0 100644 --- a/video/out/opengl/hwdec_cuda.c +++ b/video/out/opengl/hwdec_cuda.c @@ -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)); |