nvcodec: cuda.h only needs glib.h, not gst.h
authorNirbheek Chauhan <nirbheek@centricular.com>
Mon, 20 Jan 2020 09:40:51 +0000 (15:10 +0530)
committerNirbheek Chauhan <nirbheek@centricular.com>
Mon, 20 Jan 2020 09:40:51 +0000 (15:10 +0530)
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
sys/nvcodec/stub/cuda.h

index 1f45831..dc0dc85 100644 (file)
@@ -20,8 +20,9 @@
 #ifndef __GST_CUDA_LOADER_H__
 #define __GST_CUDA_LOADER_H__
 
+#include "stub/cuda.h"
+
 #include <gst/gst.h>
-#include <cuda.h>
 
 G_BEGIN_DECLS
 
index 2a75c86..740a47b 100644 (file)
@@ -19,7 +19,7 @@
 #ifndef __GST_CUDA_STUB_H__
 #define __GST_CUDA_STUB_H__
 
-#include <gst/gst.h>
+#include <glib.h>
 
 G_BEGIN_DECLS