diff options
author | Julien Isorce <jisorce@oblong.com> | 2017-07-07 16:15:12 +0100 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2017-12-09 19:32:29 +0000 |
commit | 4952fdd956959782902d1ad435142f758341545b (patch) | |
tree | ae5c4f2fda31170dd64b96c843730c043157e831 /gst-libs/gst/gl/gstglsl_private.h | |
parent | 632015a9e8ad978e276823cabd024c40965bd723 (diff) |
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
Diffstat (limited to 'gst-libs/gst/gl/gstglsl_private.h')
-rw-r--r-- | gst-libs/gst/gl/gstglsl_private.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gst-libs/gst/gl/gstglsl_private.h b/gst-libs/gst/gl/gstglsl_private.h index 08addeb8c..992c41752 100644 --- a/gst-libs/gst/gl/gstglsl_private.h +++ b/gst-libs/gst/gl/gstglsl_private.h @@ -22,6 +22,7 @@ #define __GST_GLSL_PRIVATE_H__ #include <gst/gl/gstgl_fwd.h> +#include <gst/gl/gstglfuncs.h> G_BEGIN_DECLS |