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) {