openni2src: Add support for the video meta

This commit is contained in:
Sebastian Dröge 2013-12-03 14:47:32 +01:00
parent dbb64a69f4
commit 4b3d2a1b09

View file

@ -450,6 +450,11 @@ gst_openni2src_decide_allocation (GstBaseSrc * bsrc, GstQuery * query)
config = gst_buffer_pool_get_config (pool);
gst_buffer_pool_config_set_params (config, caps, size, min, max);
if (gst_query_find_allocation_meta (query, GST_VIDEO_META_API_TYPE, NULL)) {
GST_DEBUG_OBJECT (pool, "activate Video Meta");
gst_buffer_pool_config_add_option (config, GST_BUFFER_POOL_OPTION_VIDEO_META);
}
gst_buffer_pool_set_config (pool, config);
if (update)