From 3573238683a8ad1960a1e10c3400210a7c6cbc60 Mon Sep 17 00:00:00 2001 From: Julien Isorce Date: Fri, 7 Jul 2017 16:15:12 +0100 Subject: [PATCH] gl: do not include GL headers in public gstgl headers Except for gst/gl/gstglfuncs.h It is up to the client app to include these headers. It is coherent with the fact that gstreamer-gl.pc does not require any egl.pc/gles.pc. I.e. it is the responsability of the app to search these headers within its build setup. For example gstreamer-vaapi includes explicitly EGL/egl.h and search for it in its configure.ac. For example with this patch, if an app includes the headers gst/gl/egl/gstglcontext_egl.h gst/gl/egl/gstgldisplay_egl.h gst/gl/egl/gstglmemoryegl.h it will *no longer* automatically include EGL/egl.h and GLES2/gl2.h. Which is good because the app might want to use the gstgl api only without the need to bother about gl headers. Also added a test: cd tests/check && make libs/gstglheaders.check https://bugzilla.gnome.org/show_bug.cgi?id=784779 --- ext/gl/gstglmixer.h | 1 + ext/gl/gstglvideomixer.c | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ext/gl/gstglmixer.h b/ext/gl/gstglmixer.h index 309f6bbf0c..886e00940a 100644 --- a/ext/gl/gstglmixer.h +++ b/ext/gl/gstglmixer.h @@ -24,6 +24,7 @@ #include #include #include +#include #include "gstglbasemixer.h" G_BEGIN_DECLS diff --git a/ext/gl/gstglvideomixer.c b/ext/gl/gstglvideomixer.c index a5a094b67e..7180220ded 100644 --- a/ext/gl/gstglvideomixer.c +++ b/ext/gl/gstglvideomixer.c @@ -43,10 +43,12 @@ #include "config.h" #endif -#include #include +#include +#include #include "gstglvideomixer.h" + #include "gstglmixerbin.h" #include "gstglutils.h"