From 53fc1f3fca5cafdfac936efed27378e9300f4a86 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Fri, 6 Jul 2012 11:50:44 +0200 Subject: [PATCH] update for query api 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 7213ab6..7a7b97d 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, 0); + gst_query_add_allocation_meta (query, GST_VIDEO_META_API_TYPE, NULL); 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 aafe093..97d12a4 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, 0); + gst_query_add_allocation_meta (query, GST_VIDEO_META_API_TYPE, NULL); return TRUE; diff --git a/gst/videoconvert/gstvideoconvert.c b/gst/videoconvert/gstvideoconvert.c index 3edf934..2c779d9 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, guint flags) + GType api, const GstStructure * params) { /* propose all metadata upstream */ return TRUE; diff --git a/sys/ximage/ximagesink.c b/sys/ximage/ximagesink.c index 76662b7..4724bdd 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, 0); - gst_query_add_allocation_meta (query, GST_VIDEO_CROP_META_API_TYPE, 0); + gst_query_add_allocation_meta (query, GST_VIDEO_META_API_TYPE, NULL); + gst_query_add_allocation_meta (query, GST_VIDEO_CROP_META_API_TYPE, NULL); return TRUE; diff --git a/sys/xvimage/xvimagesink.c b/sys/xvimage/xvimagesink.c index 03364c6..cc1c23b 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, 0); - gst_query_add_allocation_meta (query, GST_VIDEO_CROP_META_API_TYPE, 0); + gst_query_add_allocation_meta (query, GST_VIDEO_META_API_TYPE, NULL); + gst_query_add_allocation_meta (query, GST_VIDEO_CROP_META_API_TYPE, NULL); return TRUE; -- 2.7.4