cuda: Fix uninitialized debug category

Make sure debug category init

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2542>
This commit is contained in:
Seungha Yang 2022-06-02 21:25:38 +09:00 committed by GStreamer Marge Bot
parent 7696ca83b2
commit dc1d5f798f

View file

@ -367,6 +367,8 @@ gst_context_new_cuda_context (GstCudaContext * cuda_ctx)
g_return_val_if_fail (GST_IS_CUDA_CONTEXT (cuda_ctx), NULL);
_init_debug ();
context = gst_context_new (GST_CUDA_CONTEXT_TYPE, TRUE);
context_set_cuda_context (context, cuda_ctx);
@ -1491,6 +1493,8 @@ gst_cuda_buffer_copy (GstBuffer * dst, GstCudaBufferCopyType dst_type,
g_return_val_if_fail (src_info != NULL, FALSE);
g_return_val_if_fail (GST_IS_CUDA_CONTEXT (context), FALSE);
_init_debug ();
if (dst_type == GST_CUDA_BUFFER_COPY_NVMM &&
src_type == GST_CUDA_BUFFER_COPY_NVMM) {
GST_ERROR_OBJECT (context, "Not supported copy NVMM -> NVMM");