summaryrefslogtreecommitdiffstats
path: root/video/out/hwdec/hwdec_cuda_gl.c
diff options
context:
space:
mode:
authorPhilip Langdale <philipl@overt.org>2019-09-15 17:49:13 -0700
committerPhilip Langdale <philipl@overt.org>2019-09-15 17:51:47 -0700
commit237f5fa1b7302d61466991d109179f86ce00b8bb (patch)
tree91cca425a57e18083ef69b386d1f1783a0b36186 /video/out/hwdec/hwdec_cuda_gl.c
parent0abe34ed21023b83c7311d85ea317f3af7b5b89c (diff)
downloadmpv-237f5fa1b7302d61466991d109179f86ce00b8bb.tar.bz2
mpv-237f5fa1b7302d61466991d109179f86ce00b8bb.tar.xz
vo_gpu: hwdec_cuda: Improve interop selection mechanism
This change updates the interop selection to match what I did for VAAPI, by iterating through an array of init functions until one of them works.
Diffstat (limited to 'video/out/hwdec/hwdec_cuda_gl.c')
-rw-r--r--video/out/hwdec/hwdec_cuda_gl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/video/out/hwdec/hwdec_cuda_gl.c b/video/out/hwdec/hwdec_cuda_gl.c
index ba3d181a27..c87c372cfa 100644
--- a/video/out/hwdec/hwdec_cuda_gl.c
+++ b/video/out/hwdec/hwdec_cuda_gl.c
@@ -118,8 +118,8 @@ bool cuda_gl_init(const struct ra_hwdec *hw) {
return false;
}
} else {
- // This is not an error.
- return true;
+ // This is not an OpenGL RA.
+ return false;
}
CUdevice display_dev;