cuda: memory: Enhance debug when CU_GL_DEVICE_LIST_ALL fails

Ensuring error from cuda is logged

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4731>
This commit is contained in:
Thibault Saunier 2023-05-29 12:32:08 -04:00 committed by GStreamer Marge Bot
parent 82c449ce00
commit 8d3f90eb8d

View file

@ -358,7 +358,7 @@ gst_cuda_memory_copy_ensure_gl_interop (GstGLContext * context, gboolean * ret)
cuda_ret = CuGLGetDevices (&device_count,
device_list, 1, CU_GL_DEVICE_LIST_ALL);
if (cuda_ret != CUDA_SUCCESS || device_count == 0)
if (!gst_cuda_result (cuda_ret) || device_count == 0)
return;
*ret = TRUE;