diff options
author | Wim Taymans <wim.taymans@collabora.co.uk> | 2012-07-06 11:23:48 +0200 |
---|---|---|
committer | Wim Taymans <wim.taymans@collabora.co.uk> | 2012-07-06 11:23:48 +0200 |
commit | 177fd005abbb713e7a3b5a2b1e219ab09d8ab476 (patch) | |
tree | 02f91639e11262d36da2d7c01f64da2988139c03 /ext/theora/gsttheoradec.c | |
parent | bc5ba349b71ae5bd452f84c32025872a263b7142 (diff) |
update for query api changes
Diffstat (limited to 'ext/theora/gsttheoradec.c')
-rw-r--r-- | ext/theora/gsttheoradec.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ext/theora/gsttheoradec.c b/ext/theora/gsttheoradec.c index 1895bdf01..7d3c9d13d 100644 --- a/ext/theora/gsttheoradec.c +++ b/ext/theora/gsttheoradec.c @@ -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) { |