mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-07-01 04:10:41 +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/3796>
This commit is contained in:
parent
048037cf1f
commit
69402f0b05
|
@ -95,7 +95,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