update for query api changes

This commit is contained in:
Wim Taymans 2012-07-06 11:23:48 +02:00
parent bc5ba349b7
commit 177fd005ab
3 changed files with 6 additions and 5 deletions

View file

@ -789,8 +789,8 @@ gst_base_text_overlay_negotiate (GstBaseTextOverlay * overlay)
GST_DEBUG_OBJECT (overlay, "ALLOCATION query failed"); GST_DEBUG_OBJECT (overlay, "ALLOCATION query failed");
} }
if (gst_query_has_allocation_meta (query, if (gst_query_find_allocation_meta (query,
GST_VIDEO_OVERLAY_COMPOSITION_META_API_TYPE)) GST_VIDEO_OVERLAY_COMPOSITION_META_API_TYPE, NULL))
attach = TRUE; attach = TRUE;
overlay->attach_compo_to_buffer = attach; overlay->attach_compo_to_buffer = attach;

View file

@ -848,11 +848,12 @@ theora_dec_decide_allocation (GstVideoDecoder * decoder, GstQuery * query)
dec->can_crop = FALSE; dec->can_crop = FALSE;
config = gst_buffer_pool_get_config (pool); 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_config_add_option (config,
GST_BUFFER_POOL_OPTION_VIDEO_META); GST_BUFFER_POOL_OPTION_VIDEO_META);
dec->can_crop = 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) { if (dec->can_crop) {

View file

@ -637,7 +637,7 @@ gst_video_test_src_decide_allocation (GstBaseSrc * bsrc, GstQuery * query)
} }
config = gst_buffer_pool_get_config (pool); 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_config_add_option (config,
GST_BUFFER_POOL_OPTION_VIDEO_META); GST_BUFFER_POOL_OPTION_VIDEO_META);
} }