mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-03 16:09:39 +00:00
v4l2src: improve debug
This commit is contained in:
parent
f4e3ae65ab
commit
9fd4af2164
1 changed files with 3 additions and 1 deletions
|
@ -609,9 +609,11 @@ gst_v4l2src_decide_allocation (GstBaseSrc * bsrc, GstQuery * query)
|
|||
gst_buffer_pool_config_set_params (config, caps, size, min, max);
|
||||
|
||||
/* if downstream supports video metadata, add this to the pool config */
|
||||
if (gst_query_has_allocation_meta (query, GST_VIDEO_META_API_TYPE))
|
||||
if (gst_query_has_allocation_meta (query, GST_VIDEO_META_API_TYPE)) {
|
||||
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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue