mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 23:36:38 +00:00
configure: check for GstVideoOverlayComposition.
This commit is contained in:
parent
3fd3620f7f
commit
cbfd2aebcc
1 changed files with 19 additions and 0 deletions
19
configure.ac
19
configure.ac
|
@ -194,6 +194,25 @@ PKG_CHECK_MODULES([GST_VIDEO],
|
|||
AC_SUBST(GST_VIDEO_CFLAGS)
|
||||
AC_SUBST(GST_VIDEO_LIBS)
|
||||
|
||||
AC_CACHE_CHECK([for GstVideoOverlayComposition],
|
||||
ac_cv_have_gst_video_overlay_composition, [
|
||||
saved_CFLAGS="$CFLAGS"
|
||||
CFLAGS="$CFLAGS $GST_CFLAGS"
|
||||
saved_LIBS="$LIBS"
|
||||
LIBS="$LIBS $GST_LIBS"
|
||||
AC_TRY_COMPILE(
|
||||
[#include <gst/video/video-overlay-composition.h>],
|
||||
[GstVideoOverlayComposition *c = gst_video_overlay_composition_new(0);],
|
||||
[ac_cv_have_gst_video_overlay_composition="yes"],
|
||||
[ac_cv_have_gst_video_overlay_composition="no"]
|
||||
)
|
||||
CFLAGS="$saved_CFLAGS"
|
||||
LIBS="$saved_LIBS"
|
||||
])
|
||||
if test "$ac_cv_have_gst_video_overlay_composition" != "yes"; then
|
||||
AC_MSG_ERROR([GstVideoOverlayComposition is not available])
|
||||
fi
|
||||
|
||||
dnl Check for GStreamer basevideo
|
||||
PKG_CHECK_MODULES([GST_BASEVIDEO],
|
||||
[gstreamer-basevideo-$GST_MAJORMINOR >= $GST_PLUGINS_BAD_VERSION_REQUIRED]
|
||||
|
|
Loading…
Reference in a new issue