mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-01 05:39:51 +00:00
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.
This commit is contained in:
parent
e7544dc57e
commit
2aab27b8de
1 changed files with 8 additions and 2 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue