mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 09:10:36 +00:00
openni2src: Add support for the video meta
This commit is contained in:
parent
dbb64a69f4
commit
4b3d2a1b09
1 changed files with 5 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue