mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 03:35:21 +00:00
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:
parent
7696ca83b2
commit
dc1d5f798f
1 changed files with 4 additions and 0 deletions
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue