plugins: include main gstgl header
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Tue, 22 Aug 2017 09:37:28 +0000 (11:37 +0200)
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Tue, 22 Aug 2017 09:41:21 +0000 (11:41 +0200)
Instead including particular gstgl header files in a header file
that doesn't export a gstgl symbol, the main gstgl header file is
included in gstvaapipluginutil.c where the symbols are used.

https://bugzilla.gnome.org/show_bug.cgi?id=786597

gst/vaapi/gstvaapipluginbase.h
gst/vaapi/gstvaapipluginutil.c

index 3346ed4..276e130 100644 (file)
 #include <gst/video/gstvideosink.h>
 #include <gst/vaapi/gstvaapidisplay.h>
 
-#if USE_GST_GL_HELPERS
-# include <gst/gl/gstglcontext.h>
-#endif
-
 G_BEGIN_DECLS
 
 typedef struct _GstVaapiPluginBase GstVaapiPluginBase;
index c38334f..d5114b5 100644 (file)
@@ -39,6 +39,9 @@
 #if USE_WAYLAND
 # include <gst/vaapi/gstvaapidisplay_wayland.h>
 #endif
+#if USE_GST_GL_HELPERS
+# include <gst/gl/gl.h>
+#endif
 #include "gstvaapipluginutil.h"
 #include "gstvaapipluginbase.h"