diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2013-12-03 14:47:32 +0100 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2013-12-03 14:47:32 +0100 |
commit | 4b3d2a1b09f4b09593d8c273ab3c7710ce2e52a5 (patch) | |
tree | 03ed16ad0dcde34ba290e1cb08a22fa7cce1603c /ext/openni2 | |
parent | dbb64a69f4138dc37c75d0c8eab02946c312e84a (diff) | |
download | gstreamer-plugins-bad-4b3d2a1b09f4b09593d8c273ab3c7710ce2e52a5.tar.gz |
openni2src: Add support for the video meta
Diffstat (limited to 'ext/openni2')
-rw-r--r-- | ext/openni2/gstopenni2src.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ext/openni2/gstopenni2src.cpp b/ext/openni2/gstopenni2src.cpp index 5f8c046d4..1ae50583c 100644 --- a/ext/openni2/gstopenni2src.cpp +++ b/ext/openni2/gstopenni2src.cpp @@ -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) |