From bc5ba349b71ae5bd452f84c32025872a263b7142 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Fri, 6 Jul 2012 11:01:56 +0200 Subject: [PATCH] update for allocation query changes --- ext/theora/gsttheoraenc.c | 2 +- gst-libs/gst/video/gstvideofilter.c | 2 +- gst/videoconvert/gstvideoconvert.c | 2 +- sys/ximage/ximagesink.c | 4 ++-- sys/xvimage/xvimagesink.c | 4 ++-- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/ext/theora/gsttheoraenc.c b/ext/theora/gsttheoraenc.c index 96770bdede..7213ab6972 100644 --- a/ext/theora/gsttheoraenc.c +++ b/ext/theora/gsttheoraenc.c @@ -1041,7 +1041,7 @@ theora_enc_finish (GstVideoEncoder * benc) static gboolean theora_enc_propose_allocation (GstVideoEncoder * encoder, GstQuery * query) { - gst_query_add_allocation_meta (query, GST_VIDEO_META_API_TYPE); + gst_query_add_allocation_meta (query, GST_VIDEO_META_API_TYPE, 0); return GST_VIDEO_ENCODER_CLASS (parent_class)->propose_allocation (encoder, query); diff --git a/gst-libs/gst/video/gstvideofilter.c b/gst-libs/gst/video/gstvideofilter.c index 26c5ad9c5d..aafe093390 100644 --- a/gst-libs/gst/video/gstvideofilter.c +++ b/gst-libs/gst/video/gstvideofilter.c @@ -98,7 +98,7 @@ gst_video_filter_propose_allocation (GstBaseTransform * trans, gst_query_add_allocation_pool (query, pool, size, 0, 0); gst_object_unref (pool); - gst_query_add_allocation_meta (query, GST_VIDEO_META_API_TYPE); + gst_query_add_allocation_meta (query, GST_VIDEO_META_API_TYPE, 0); return TRUE; diff --git a/gst/videoconvert/gstvideoconvert.c b/gst/videoconvert/gstvideoconvert.c index 0f1a6907f2..3edf934d62 100644 --- a/gst/videoconvert/gstvideoconvert.c +++ b/gst/videoconvert/gstvideoconvert.c @@ -160,7 +160,7 @@ gst_video_convert_fixate_caps (GstBaseTransform * trans, static gboolean gst_video_convert_filter_meta (GstBaseTransform * trans, GstQuery * query, - GType api) + GType api, guint flags) { /* propose all metadata upstream */ return TRUE; diff --git a/sys/ximage/ximagesink.c b/sys/ximage/ximagesink.c index b02ccc1e51..76662b77fe 100644 --- a/sys/ximage/ximagesink.c +++ b/sys/ximage/ximagesink.c @@ -1480,8 +1480,8 @@ gst_ximagesink_propose_allocation (GstBaseSink * bsink, GstQuery * query) } /* we also support various metadata */ - gst_query_add_allocation_meta (query, GST_VIDEO_META_API_TYPE); - gst_query_add_allocation_meta (query, GST_VIDEO_CROP_META_API_TYPE); + gst_query_add_allocation_meta (query, GST_VIDEO_META_API_TYPE, 0); + gst_query_add_allocation_meta (query, GST_VIDEO_CROP_META_API_TYPE, 0); return TRUE; diff --git a/sys/xvimage/xvimagesink.c b/sys/xvimage/xvimagesink.c index 1968115796..03364c6bab 100644 --- a/sys/xvimage/xvimagesink.c +++ b/sys/xvimage/xvimagesink.c @@ -1991,8 +1991,8 @@ gst_xvimagesink_propose_allocation (GstBaseSink * bsink, GstQuery * query) } /* we also support various metadata */ - gst_query_add_allocation_meta (query, GST_VIDEO_META_API_TYPE); - gst_query_add_allocation_meta (query, GST_VIDEO_CROP_META_API_TYPE); + gst_query_add_allocation_meta (query, GST_VIDEO_META_API_TYPE, 0); + gst_query_add_allocation_meta (query, GST_VIDEO_CROP_META_API_TYPE, 0); return TRUE;