mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-09 00:45:56 +00:00
nvcodec: Fix reporting of CuDeviceGetCount error
cuda_ret is was always going to be CUDA_SUCCESS in the error log. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3776>
This commit is contained in:
parent
2048a0a4d9
commit
43ae6b421b
1 changed files with 2 additions and 1 deletions
|
@ -115,7 +115,8 @@ plugin_init (GstPlugin * plugin)
|
|||
return TRUE;
|
||||
}
|
||||
|
||||
if (CuDeviceGetCount (&dev_count) != CUDA_SUCCESS || !dev_count) {
|
||||
cuda_ret = CuDeviceGetCount (&dev_count);
|
||||
if (cuda_ret != CUDA_SUCCESS || !dev_count) {
|
||||
GST_WARNING ("No available device, ret: 0x%x", (gint) cuda_ret);
|
||||
return TRUE;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue