From ddd57f91075a80582ecc22591654517820f40ac4 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Fri, 6 Jul 2012 11:27:27 +0200 Subject: [PATCH] update for query api changes --- ext/mpeg2dec/gstmpeg2dec.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ext/mpeg2dec/gstmpeg2dec.c b/ext/mpeg2dec/gstmpeg2dec.c index 7032be83bb..6e9d4c1137 100644 --- a/ext/mpeg2dec/gstmpeg2dec.c +++ b/ext/mpeg2dec/gstmpeg2dec.c @@ -281,11 +281,12 @@ gst_mpeg2dec_decide_allocation (GstVideoDecoder * decoder, GstQuery * query) dec->has_cropping = FALSE; config = gst_buffer_pool_get_config (pool); - if (gst_query_has_allocation_meta (query, GST_VIDEO_META_API_TYPE)) { + if (gst_query_find_allocation_meta (query, GST_VIDEO_META_API_TYPE, NULL)) { gst_buffer_pool_config_add_option (config, GST_BUFFER_POOL_OPTION_VIDEO_META); dec->has_cropping = - gst_query_has_allocation_meta (query, GST_VIDEO_CROP_META_API_TYPE); + gst_query_find_allocation_meta (query, GST_VIDEO_CROP_META_API_TYPE, + NULL); } if (dec->has_cropping) {