From 2aab27b8deb9bd4e751f62e06469d5b40057a202 Mon Sep 17 00:00:00 2001 From: Gwenole Beauchesne Date: Fri, 15 Nov 2013 17:14:04 +0100 Subject: [PATCH] vaapipostproc: fix build on 64-bit platforms with GStreamer 0.10. The size argument for GstBaseTransform::transform_size() hook is a guint in GStreamer 0.10 APIs but a gsize in GStreamer >= 1.0.X APIs. --- gst/vaapi/gstvaapipostproc.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/gst/vaapi/gstvaapipostproc.c b/gst/vaapi/gstvaapipostproc.c index 1abc228..d79ae9e 100755 --- a/gst/vaapi/gstvaapipostproc.c +++ b/gst/vaapi/gstvaapipostproc.c @@ -892,10 +892,16 @@ gst_vaapipostproc_transform_caps(GstBaseTransform *trans, gst_vaapipostproc_transform_caps_impl #endif +#if GST_CHECK_VERSION(1,0,0) +typedef gsize GstBaseTransformSizeType; +#else +typedef guint GstBaseTransformSizeType; +#endif + static gboolean gst_vaapipostproc_transform_size(GstBaseTransform *trans, - GstPadDirection direction, GstCaps *caps, gsize size, - GstCaps *othercaps, gsize *othersize) + GstPadDirection direction, GstCaps *caps, GstBaseTransformSizeType size, + GstCaps *othercaps, GstBaseTransformSizeType *othersize) { GstVaapiPostproc * const postproc = GST_VAAPIPOSTPROC(trans); -- 2.7.4