mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-10 01:54:11 +00:00
v4l2src: add metadata
This commit is contained in:
parent
fcfdececce
commit
f7c500fe9c
1 changed files with 7 additions and 0 deletions
|
@ -50,6 +50,8 @@
|
|||
#include <sys/time.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "gst/video/gstmetavideo.h"
|
||||
|
||||
#include "gstv4l2src.h"
|
||||
|
||||
#include "gstv4l2colorbalance.h"
|
||||
|
@ -595,6 +597,11 @@ gst_v4l2src_setup_allocation (GstBaseSrc * bsrc, GstQuery * query)
|
|||
gst_buffer_pool_config_get (config, &caps, NULL, NULL, NULL, NULL, NULL);
|
||||
gst_buffer_pool_config_set (config, caps, size, min, max, prefix,
|
||||
alignment);
|
||||
|
||||
/* if downstream supports video metadata, add this to the pool config */
|
||||
if (gst_query_has_allocation_meta (query, GST_META_API_VIDEO))
|
||||
gst_buffer_pool_config_add_meta (config, GST_META_API_VIDEO);
|
||||
|
||||
gst_buffer_pool_set_config (pool, config);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue