libs: egl: utils: fix usage of GstGL macros
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Tue, 24 Apr 2018 08:02:33 +0000 (10:02 +0200)
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Wed, 25 Apr 2018 14:29:28 +0000 (16:29 +0200)
Include gl.h for the required GstGL symbols.

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

gst-libs/gst/vaapi/gstvaapiutils_egl.c

index 17a6cd8..958d1fd 100644 (file)
 
 #include "sysdeps.h"
 #include "gstvaapiutils_egl.h"
-#if USE_GST_GL_HELPERS && GST_GL_HAVE_PLATFORM_EGL
-# include <gst/gl/egl/gstgldisplay_egl.h>
+#if USE_GST_GL_HELPERS
+# include <gst/gl/gl.h>
+# if GST_GL_HAVE_PLATFORM_EGL
+#  include <gst/gl/egl/gstgldisplay_egl.h>
+# endif
 #endif
 
 #define DEBUG 1