From 4344a1053dc6addc1948d4981a08aeabd26b6bc8 Mon Sep 17 00:00:00 2001 From: Gwenole Beauchesne Date: Tue, 18 Dec 2012 16:36:01 +0100 Subject: [PATCH] configure: check for GstVideoDecoder API. GstVideoDecoder API is part of an unreleased GStreamer 0.10 stack. In particular, this is only available in git 0.10 branch or GStreamer >= 1.0 stack. Interested parties may either use upstream git 0.10 branch or backport the necessary support for GstVideoDecoder API, thus including helper tools like GstVideoCodecFrame et al. --- configure.ac | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/configure.ac b/configure.ac index 748b1d9498..68dcd0eead 100644 --- a/configure.ac +++ b/configure.ac @@ -211,6 +211,33 @@ if test "$ac_cv_have_gst_video_overlay_composition" != "yes"; then AC_MSG_ERROR([GstVideoOverlayComposition is not available]) fi +dnl ... GstVideoDecoder (gstreamer-video) +AC_CACHE_CHECK([for GstVideoDecoder], + ac_cv_have_gst_video_decoder, [ + saved_CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CPPFLAGS $GST_CFLAGS $GST_VIDEO_CFLAGS" + saved_LIBS="$LIBS" + LIBS="$LIBS $GST_LIBS $GST_VIDEO_LIBS" + AC_COMPILE_IFELSE( + [AC_LANG_PROGRAM( + [[#include ]], + [[GstVideoCodecFrame *f; + GstVideoDecoder vdec; + f = g_slice_new0(GstVideoCodecFrame); + f->ref_count = 1; + gst_video_decoder_have_frame(&vdec); + gst_video_decoder_finish_frame(&vdec, f); + gst_video_codec_frame_unref(f);]])], + [ac_cv_have_gst_video_decoder="yes"], + [ac_cv_have_gst_video_decoder="no"] + ) + CPPFLAGS="$saved_CPPFLAGS" + LIBS="$saved_LIBS" +]) +if test "$ac_cv_have_gst_video_decoder" != "yes"; then + AC_MSG_ERROR([GstVideoDecoder is not available]) +fi + dnl GStreamer -bad plugins PKG_CHECK_MODULES([GST_BASEVIDEO], [gstreamer-basevideo-$GST_MAJORMINOR >= gst_plugins_bad_version])