diff --git a/sys/nvcodec/gstnvbaseenc.c b/sys/nvcodec/gstnvbaseenc.c index fe2cfc7770..0789172f76 100644 --- a/sys/nvcodec/gstnvbaseenc.c +++ b/sys/nvcodec/gstnvbaseenc.c @@ -31,13 +31,6 @@ #if HAVE_NVCODEC_GST_GL #include -/* missing headers in old cudaGL.h */ -#ifdef __APPLE__ -#include -#else -#include -#endif -#include #endif /* TODO: diff --git a/sys/nvcodec/gstnvdec.h b/sys/nvcodec/gstnvdec.h index 71f8a689a7..ccc5727e91 100644 --- a/sys/nvcodec/gstnvdec.h +++ b/sys/nvcodec/gstnvdec.h @@ -32,7 +32,6 @@ #include #include "gstcuvidloader.h" #include "gstcudaloader.h" -#include G_BEGIN_DECLS diff --git a/sys/nvcodec/meson.build b/sys/nvcodec/meson.build index 9d2bf0fe06..05b7ae11e7 100644 --- a/sys/nvcodec/meson.build +++ b/sys/nvcodec/meson.build @@ -77,18 +77,6 @@ if not cuda_header_dep.found() endif if gstgl_dep.found() - if cuda_dep.found() - if cc.has_header('cudaGL.h', dependencies: cuda_dep) - use_nvcodec_gl = true - endif - else - if cc.has_header('cudaGL.h', args: '-I' + cuda_incdir) - use_nvcodec_gl = true - endif - endif -endif - -if use_nvcodec_gl # FIXME: make nvdec usable without OpenGL dependency nvcodec_sources += nvdec_sources extra_c_args += ['-DHAVE_NVCODEC_GST_GL=1']