summaryrefslogtreecommitdiff
path: root/gst-libs/gst
diff options
context:
space:
mode:
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>2018-01-17 12:41:54 +0100
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>2018-01-17 12:41:54 +0100
commit7418d4e954cafc1b70fef3e9c1bb275502faaea7 (patch)
treee45956e896dfbb3486008b4e08dc3278cff3672d /gst-libs/gst
parent8688e81d426b42aaa14ab18cd1c2dda087b9d478 (diff)
libs: utils: egl: add missing guards for GstGL
Diffstat (limited to 'gst-libs/gst')
-rw-r--r--gst-libs/gst/vaapi/gstvaapiutils_egl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gst-libs/gst/vaapi/gstvaapiutils_egl.c b/gst-libs/gst/vaapi/gstvaapiutils_egl.c
index db570ad9..17a6cd89 100644
--- a/gst-libs/gst/vaapi/gstvaapiutils_egl.c
+++ b/gst-libs/gst/vaapi/gstvaapiutils_egl.c
@@ -22,7 +22,7 @@
#include "sysdeps.h"
#include "gstvaapiutils_egl.h"
-#if USE_GST_GL_HELPERS
+#if USE_GST_GL_HELPERS && GST_GL_HAVE_PLATFORM_EGL
# include <gst/gl/egl/gstgldisplay_egl.h>
#endif
@@ -540,7 +540,7 @@ egl_display_run (EglDisplay * display, EglContextRunFunc func, gpointer args)
static gpointer
egl_get_display_from_native (guintptr native_display, guint gl_platform)
{
-#if USE_GST_GL_HELPERS
+#if USE_GST_GL_HELPERS && GST_GL_HAVE_PLATFORM_EGL
EGLDisplay ret;
GstGLDisplayType display_type = GST_GL_DISPLAY_TYPE_ANY;