From 7e93ae063817ae0d75a3bba354941db23ab3307b Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Mon, 20 Jan 2020 15:10:51 +0530 Subject: [PATCH] nvcodec: cuda.h only needs glib.h, not gst.h Just a nitpick. Also, force the compiler to use our stub header instead of searching for it in the include paths. --- sys/nvcodec/gstcudaloader.h | 3 ++- sys/nvcodec/stub/cuda.h | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/sys/nvcodec/gstcudaloader.h b/sys/nvcodec/gstcudaloader.h index 1f45831..dc0dc85 100644 --- a/sys/nvcodec/gstcudaloader.h +++ b/sys/nvcodec/gstcudaloader.h @@ -20,8 +20,9 @@ #ifndef __GST_CUDA_LOADER_H__ #define __GST_CUDA_LOADER_H__ +#include "stub/cuda.h" + #include -#include G_BEGIN_DECLS diff --git a/sys/nvcodec/stub/cuda.h b/sys/nvcodec/stub/cuda.h index 2a75c86..740a47b 100644 --- a/sys/nvcodec/stub/cuda.h +++ b/sys/nvcodec/stub/cuda.h @@ -19,7 +19,7 @@ #ifndef __GST_CUDA_STUB_H__ #define __GST_CUDA_STUB_H__ -#include +#include G_BEGIN_DECLS -- 2.7.4