v4l2src: improve debug

This commit is contained in:
Wim Taymans 2012-06-26 12:07:29 +02:00
parent f4e3ae65ab
commit 9fd4af2164

View file

@ -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);
}