From 700fd242cc46b4189359687136b89eeef612f9ff Mon Sep 17 00:00:00 2001 From: Gwenole Beauchesne Date: Thu, 3 Jul 2014 17:17:00 +0200 Subject: [PATCH] build: fix for GStreamer 0.10. --- configure.ac | 8 ++++++++ gst/vaapi/gstvaapidecode.c | 2 ++ 2 files changed, 10 insertions(+) diff --git a/configure.ac b/configure.ac index e383de4..7bba4ba 100644 --- a/configure.ac +++ b/configure.ac @@ -254,6 +254,14 @@ if test "$USE_GST_API_1_2p" = "yes"; then fi AC_SUBST([GST_PKG_VERSION]) +dnl Validate certain features +if test "$USE_GST_API_0_10" = "yes"; then + if test "$enable_builtin_videoparsers" = "yes"; then + AC_MSG_WARN([disabled built-in videoparsers (unsupported)]) + enable_builtin_videoparsers="no" + fi +fi + dnl GStreamer Core PKG_CHECK_MODULES([GST], [gstreamer-$GST_PKG_VERSION >= $GST_VERSION_REQUIRED]) diff --git a/gst/vaapi/gstvaapidecode.c b/gst/vaapi/gstvaapidecode.c index 49df984..0ec280d 100644 --- a/gst/vaapi/gstvaapidecode.c +++ b/gst/vaapi/gstvaapidecode.c @@ -129,6 +129,7 @@ gst_vaapidecode_update_sink_caps(GstVaapiDecode *decode, GstCaps *caps) return TRUE; } +#if GST_CHECK_VERSION(1,1,0) static void gst_vaapidecode_video_info_change_format(GstVideoInfo *info, GstVideoFormat format, guint width, guint height) @@ -145,6 +146,7 @@ gst_vaapidecode_video_info_change_format(GstVideoInfo *info, info->fps_n = vi.fps_n; info->fps_d = vi.fps_d; } +#endif static gboolean gst_vaapidecode_update_src_caps(GstVaapiDecode *decode, -- 2.7.4