nvcodec: Drop cudaGL.h dependency

nvcodec does not use any type/define/enum in cudaGL.h.
This commit is contained in:
Seungha Yang 2019-07-22 23:01:43 +09:00
parent 67ccaf904d
commit afe3c7e3ef
3 changed files with 0 additions and 20 deletions

View file

@ -31,13 +31,6 @@
#if HAVE_NVCODEC_GST_GL #if HAVE_NVCODEC_GST_GL
#include <gst/gl/gl.h> #include <gst/gl/gl.h>
/* missing headers in old cudaGL.h */
#ifdef __APPLE__
#include <OpenGL/gl.h>
#else
#include <GL/gl.h>
#endif
#include <cudaGL.h>
#endif #endif
/* TODO: /* TODO:

View file

@ -32,7 +32,6 @@
#include <gst/gl/gstglfuncs.h> #include <gst/gl/gstglfuncs.h>
#include "gstcuvidloader.h" #include "gstcuvidloader.h"
#include "gstcudaloader.h" #include "gstcudaloader.h"
#include <cudaGL.h>
G_BEGIN_DECLS G_BEGIN_DECLS

View file

@ -77,18 +77,6 @@ if not cuda_header_dep.found()
endif endif
if gstgl_dep.found() 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 # FIXME: make nvdec usable without OpenGL dependency
nvcodec_sources += nvdec_sources nvcodec_sources += nvdec_sources
extra_c_args += ['-DHAVE_NVCODEC_GST_GL=1'] extra_c_args += ['-DHAVE_NVCODEC_GST_GL=1']