mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-22 17:51:16 +00:00
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:
parent
82c449ce00
commit
8d3f90eb8d
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue