summaryrefslogtreecommitdiff
path: root/ext/theora/gsttheoradec.c
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@collabora.co.uk>2012-07-06 11:23:48 +0200
committerWim Taymans <wim.taymans@collabora.co.uk>2012-07-06 11:23:48 +0200
commit177fd005abbb713e7a3b5a2b1e219ab09d8ab476 (patch)
tree02f91639e11262d36da2d7c01f64da2988139c03 /ext/theora/gsttheoradec.c
parentbc5ba349b71ae5bd452f84c32025872a263b7142 (diff)
update for query api changes
Diffstat (limited to 'ext/theora/gsttheoradec.c')
-rw-r--r--ext/theora/gsttheoradec.c5
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) {