projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dbb64a6
)
openni2src: Add support for the video meta
author
Sebastian Dröge
<sebastian@centricular.com>
Tue, 3 Dec 2013 13:47:32 +0000
(14:47 +0100)
committer
Sebastian Dröge
<sebastian@centricular.com>
Tue, 3 Dec 2013 13:47:32 +0000
(14:47 +0100)
ext/openni2/gstopenni2src.cpp
patch
|
blob
|
history
diff --git
a/ext/openni2/gstopenni2src.cpp
b/ext/openni2/gstopenni2src.cpp
index
5f8c046
..
1ae5058
100644
(file)
--- 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)