mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 02:31:03 +00:00
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
2 changed files with 2 additions and 2 deletions
|
@ -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…
Reference in a new issue