nvcodec: Register all elements if CUDA kernel is precompiled

GstCudaConverter dependent element can work if CUDA kernel is
precompiled even if runtime compiler library is not found

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8536>
This commit is contained in:
Seungha Yang 2025-02-21 20:11:09 +09:00 committed by GStreamer Marge Bot
parent ae8eef82a6
commit 184ac2d930

View File

@ -193,7 +193,15 @@ plugin_init (GstPlugin * plugin)
return TRUE;
}
#ifdef NVCODEC_CUDA_PRECOMPILED
/* If cuda kernels are precompiled, just try library load library.
* Even if we have compiled kernel bytecode, we may need to use
* this runtime compiler as a fallback */
gst_cuda_nvrtc_load_library ();
have_nvrtc = TRUE;
#else
have_nvrtc = check_runtime_compiler ();
#endif
if (!have_nvrtc) {
gst_plugin_add_status_info (plugin,
"CUDA runtime compilation library \"" NVRTC_LIBNAME "\" was not found, "