mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-05 06:58:56 +00:00
gl/build: add GST_GL_HAVE_DMABUF to gstglconfig.h
it's exposed in public API so hiding it in an AC_DEFINE for config.h only works when building libgstgl itself. Attempting to use libgstgl (especially on egl platforms) will throw a compilation error.
This commit is contained in:
parent
74a90087c1
commit
dd42e1c467
1 changed files with 6 additions and 1 deletions
|
@ -848,10 +848,11 @@ HAVE_GST_ALLOCATORS=no
|
||||||
PKG_CHECK_MODULES(GST_ALLOCATORS, gstreamer-allocators-1.0,
|
PKG_CHECK_MODULES(GST_ALLOCATORS, gstreamer-allocators-1.0,
|
||||||
HAVE_GST_ALLOCATORS=yes, )
|
HAVE_GST_ALLOCATORS=yes, )
|
||||||
|
|
||||||
|
GST_GL_HAVE_DMABUF=0
|
||||||
if test "x$HAVE_DRM_FOURCC_HEADER" = "xyes" -a \
|
if test "x$HAVE_DRM_FOURCC_HEADER" = "xyes" -a \
|
||||||
"x$HAVE_GST_ALLOCATORS" = "xyes" -a \
|
"x$HAVE_GST_ALLOCATORS" = "xyes" -a \
|
||||||
"x$HAVE_EGL" = "xyes"; then
|
"x$HAVE_EGL" = "xyes"; then
|
||||||
AC_DEFINE(GST_GL_HAVE_DMABUF, [1] , [DMABUF available for gl plugins])
|
GST_GL_HAVE_DMABUF=1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
dnl check if we can include both GL and GLES2 at the same time
|
dnl check if we can include both GL and GLES2 at the same time
|
||||||
|
@ -1242,6 +1243,10 @@ GL_CONFIG_DEFINES="$GL_CONFIG_DEFINES
|
||||||
#define GST_GL_HAVE_PLATFORM_EAGL $GST_GL_HAVE_PLATFORM_EAGL
|
#define GST_GL_HAVE_PLATFORM_EAGL $GST_GL_HAVE_PLATFORM_EAGL
|
||||||
"
|
"
|
||||||
|
|
||||||
|
GL_CONFIG_DEFINES="$GL_CONFIG_DEFINES
|
||||||
|
#define GST_GL_HAVE_DMABUF $GST_GL_HAVE_DMABUF
|
||||||
|
"
|
||||||
|
|
||||||
dnl Check for no platforms/window systems
|
dnl Check for no platforms/window systems
|
||||||
if test "x$GL_APIS" = "x"; then
|
if test "x$GL_APIS" = "x"; then
|
||||||
AC_MSG_WARN([Either OpenGL or OpenGL|ES is required for OpenGL support])
|
AC_MSG_WARN([Either OpenGL or OpenGL|ES is required for OpenGL support])
|
||||||
|
|
Loading…
Reference in a new issue