update for query api changes
authorWim Taymans <wim.taymans@collabora.co.uk>
Fri, 6 Jul 2012 09:23:48 +0000 (11:23 +0200)
committerWim Taymans <wim.taymans@collabora.co.uk>
Fri, 6 Jul 2012 09:23:48 +0000 (11:23 +0200)
ext/pango/gstbasetextoverlay.c
ext/theora/gsttheoradec.c
gst/videotestsrc/gstvideotestsrc.c

index 92076bb..e01d40c 100644 (file)
@@ -789,8 +789,8 @@ gst_base_text_overlay_negotiate (GstBaseTextOverlay * overlay)
     GST_DEBUG_OBJECT (overlay, "ALLOCATION query failed");
   }
 
-  if (gst_query_has_allocation_meta (query,
-          GST_VIDEO_OVERLAY_COMPOSITION_META_API_TYPE))
+  if (gst_query_find_allocation_meta (query,
+          GST_VIDEO_OVERLAY_COMPOSITION_META_API_TYPE, NULL))
     attach = TRUE;
 
   overlay->attach_compo_to_buffer = attach;
index 1895bdf..7d3c9d1 100644 (file)
@@ -848,11 +848,12 @@ theora_dec_decide_allocation (GstVideoDecoder * decoder, GstQuery * query)
 
   dec->can_crop = 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->can_crop =
-        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->can_crop) {
index ed2940b..5f9a7cc 100644 (file)
@@ -637,7 +637,7 @@ gst_video_test_src_decide_allocation (GstBaseSrc * bsrc, GstQuery * query)
   }
 
   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);
   }