nvenc: Use the HAVE_NVENC_GST_GL define instead of HAVE_GST_GL
Fix compiling against the GL interop by gating includes on the right header
This commit is contained in:
parent
3f318ecb96
commit
02c2b0b275
@ -30,7 +30,7 @@
|
||||
GST_DEBUG_CATEGORY_STATIC (gst_nv_h264_enc_debug);
|
||||
#define GST_CAT_DEFAULT gst_nv_h264_enc_debug
|
||||
|
||||
#if HAVE_GST_GL
|
||||
#if HAVE_NVENC_GST_GL
|
||||
#include <cuda.h>
|
||||
#include <cuda_runtime_api.h>
|
||||
#include <cuda_gl_interop.h>
|
||||
|
@ -31,7 +31,7 @@
|
||||
GST_DEBUG_CATEGORY_STATIC (gst_nv_h265_enc_debug);
|
||||
#define GST_CAT_DEFAULT gst_nv_h265_enc_debug
|
||||
|
||||
#if HAVE_GST_GL
|
||||
#if HAVE_NVENC_GST_GL
|
||||
#include <cuda.h>
|
||||
#include <cuda_runtime_api.h>
|
||||
#include <cuda_gl_interop.h>
|
||||
|
Loading…
x
Reference in New Issue
Block a user