From 237f5fa1b7302d61466991d109179f86ce00b8bb Mon Sep 17 00:00:00 2001 From: Philip Langdale Date: Sun, 15 Sep 2019 17:49:13 -0700 Subject: 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. --- video/out/hwdec/hwdec_cuda_gl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'video/out/hwdec/hwdec_cuda_gl.c') 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; -- cgit v1.2.3