vaapipostproc: fix build on 64-bit platforms with GStreamer 0.10.
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Fri, 15 Nov 2013 16:14:04 +0000 (17:14 +0100)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Fri, 15 Nov 2013 18:36:50 +0000 (19:36 +0100)
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

index 1abc228..d79ae9e 100755 (executable)
@@ -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);