cuda: Correct CUDA device id field in GstContext structure

device id is unsigned int, not signed.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2311>
This commit is contained in:
Seungha Yang 2022-04-27 22:50:37 +09:00 committed by GStreamer Marge Bot
parent 7466444b63
commit 9cd6f9d51e

View file

@ -172,7 +172,7 @@ context_set_cuda_context (GstContext * context, GstCudaContext * cuda_ctx)
s = gst_context_writable_structure (context);
gst_structure_set (s, GST_CUDA_CONTEXT_TYPE, GST_TYPE_CUDA_CONTEXT,
cuda_ctx, "cuda-device-id", G_TYPE_INT, device_id, NULL);
cuda_ctx, "cuda-device-id", G_TYPE_UINT, device_id, NULL);
}
/**