build: fix for GStreamer 0.10.
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Thu, 3 Jul 2014 15:17:00 +0000 (17:17 +0200)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Thu, 3 Jul 2014 17:43:04 +0000 (19:43 +0200)
configure.ac
gst/vaapi/gstvaapidecode.c

index e383de4..7bba4ba 100644 (file)
@@ -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])
index 49df984..0ec280d 100644 (file)
@@ -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,