From: Matthew Waters Date: Tue, 4 Oct 2022 04:39:51 +0000 (+0100) Subject: build/gl: fix automatic dispmanx detection for rpi4 X-Git-Tag: 1.22.0~745 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5ddb347a231d35ea3f4d39ccc527b24250d0fc7e;p=platform%2Fupstream%2Fgstreamer.git build/gl: fix automatic dispmanx detection for rpi4 rpi4 doesn't contain dispmanx but still contains bcm_host.pc which confuses the configure detection. Add an explicit check for EGL_DISPMANX_WINDOW_T to ensure that we only build with dispmanx when the types are available. Fixes: https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/issues/893 Fixes: https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/issues/952 Part-of: --- diff --git a/subprojects/gst-plugins-base/gst-libs/gst/gl/meson.build b/subprojects/gst-plugins-base/gst-libs/gst/gl/meson.build index 346ab03..5085545 100644 --- a/subprojects/gst-plugins-base/gst-libs/gst/gl/meson.build +++ b/subprojects/gst-plugins-base/gst-libs/gst/gl/meson.build @@ -690,7 +690,16 @@ if need_win_x11 != 'no' endif if need_win_dispmanx != 'no' - if bcm_host_dep.found() + have_dispmanx_window_t = cc.has_type( + 'EGL_DISPMANX_WINDOW_T', + prefix: ''' +#include +#include +''', + dependencies: [gl_lib_deps, egl_dep, bcm_host_dep], + include_directories: gl_includes) + + if have_dispmanx_window_t and bcm_host_dep.found() if not egl_dep.found() error('dispmanx requires the use of egl') endif