gstreamer/subprojects/gst-plugins-bad/gst-libs/gst/cuda
Alicia Boya García 85b6625150 cudaloader: Initialize logging category
gstcudaloader.cpp defines GST_DEBUG_CATEGORY (gst_cudaloader_debug);
but it wasn't initializing it anywhere.

This caused the following error to be logged by gst-plugin-scanner when
libcuda.so.1/nvcuda.dll couldn't be loaded, e.g. in systems without
CUDA:

(gst-plugin-scanner:39618): GStreamer-CRITICAL **: 14:40:22.346:
gst_debug_log_full_valist: assertion 'category != NULL' failed

This patch fixes the bug by initializing the category in
gst_cuda_load_library_once_func() before any logging occurs.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4154>
2023-03-14 03:07:50 +00:00
..
stub cuda: Remove GST_CUDA_HAS_D3D define from header 2022-09-13 16:40:51 +00:00
cuda-gst.h cuda: Provide single header include entry point 2023-02-03 15:27:42 +00:00
cuda-prelude.h cuda: Factor out a public GstCUDA library 2022-04-19 16:39:43 +00:00
gstcuda-private.h cuda: Port to C++ 2023-02-16 17:49:53 +00:00
gstcuda.h cuda: Add GstCudaStream object 2023-02-03 15:27:42 +00:00
gstcudabufferpool.cpp cuda: Port to C++ 2023-02-16 17:49:53 +00:00
gstcudabufferpool.h cudabufferpool: Add support for CUDA stream use in memory 2023-02-03 15:27:42 +00:00
gstcudacontext.cpp cuda, nvcodec: Make GstD3D11 dependency mandatory 2023-02-16 17:49:54 +00:00
gstcudacontext.h cuda: Provide single header include entry point 2023-02-03 15:27:42 +00:00
gstcudaloader.cpp cudaloader: Initialize logging category 2023-03-14 03:07:50 +00:00
gstcudaloader.h cuda: Provide single header include entry point 2023-02-03 15:27:42 +00:00
gstcudamemory.cpp cudamemory, d3d11memory: Add memory_{get,set}_token_data() methods 2023-02-16 17:49:54 +00:00
gstcudamemory.h cudamemory, d3d11memory: Add memory_{get,set}_token_data() methods 2023-02-16 17:49:54 +00:00
gstcudanvrtc.cpp cuda: Port to C++ 2023-02-16 17:49:53 +00:00
gstcudanvrtc.h cuda: Provide single header include entry point 2023-02-03 15:27:42 +00:00
gstcudastream.cpp cuda: Port to C++ 2023-02-16 17:49:53 +00:00
gstcudastream.h cuda: Add GstCudaStream object 2023-02-03 15:27:42 +00:00
gstcudautils.cpp cuda: Rename macro HAVE_NVCODEC_GST_GL -> HAVE_CUDA_GST_GL 2023-02-20 01:49:31 +09:00
gstcudautils.h cudamemory, d3d11memory: Add memory_{get,set}_token_data() methods 2023-02-16 17:49:54 +00:00
meson.build cuda: Link libatomic if needed 2023-02-21 16:00:32 +00:00