build: fix for GStreamer 0.10.

This commit is contained in:
Gwenole Beauchesne 2014-07-03 17:17:00 +02:00
parent 65f897df6a
commit 700fd242cc
2 changed files with 10 additions and 0 deletions

View 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])

View 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,