From 2a1459c88fefc6d27cb5b3282efa2179902512cd Mon Sep 17 00:00:00 2001 From: Nicolas Dufresne Date: Fri, 19 Dec 2014 12:30:03 -0500 Subject: [PATCH] v4l2pool: Update configuration size We already update our copy of VideoInfo.size to proper size, now also the configuration so the size matches on release. https://bugzilla.gnome.org/show_bug.cgi?id=741420 --- sys/v4l2/gstv4l2bufferpool.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/v4l2/gstv4l2bufferpool.c b/sys/v4l2/gstv4l2bufferpool.c index 7a6f4a907a..a1aa64e8b2 100644 --- a/sys/v4l2/gstv4l2bufferpool.c +++ b/sys/v4l2/gstv4l2bufferpool.c @@ -523,9 +523,9 @@ gst_v4l2_buffer_pool_set_config (GstBufferPool * bpool, GstStructure * config) GST_BUFFER_POOL_OPTION_VIDEO_META); } - if (updated) - gst_buffer_pool_config_set_params (config, caps, size, min_buffers, - max_buffers); + /* Always update the config to ensure the configured size matches */ + gst_buffer_pool_config_set_params (config, caps, obj->info.size, min_buffers, + max_buffers); /* keep a GstVideoInfo with defaults for the when we need to copy */ gst_video_info_from_caps (&pool->caps_info, caps);