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:
Jan Schmidt 2018-04-25 02:42:43 +10:00
parent 3f318ecb96
commit 02c2b0b275
2 changed files with 2 additions and 2 deletions

View file

@ -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>

View file

@ -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>