mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 09:40:37 +00:00
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
This commit is contained in:
parent
cbe56d2331
commit
2a1459c88f
1 changed files with 3 additions and 3 deletions
|
@ -523,8 +523,8 @@ gst_v4l2_buffer_pool_set_config (GstBufferPool * bpool, GstStructure * config)
|
||||||
GST_BUFFER_POOL_OPTION_VIDEO_META);
|
GST_BUFFER_POOL_OPTION_VIDEO_META);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (updated)
|
/* Always update the config to ensure the configured size matches */
|
||||||
gst_buffer_pool_config_set_params (config, caps, size, min_buffers,
|
gst_buffer_pool_config_set_params (config, caps, obj->info.size, min_buffers,
|
||||||
max_buffers);
|
max_buffers);
|
||||||
|
|
||||||
/* keep a GstVideoInfo with defaults for the when we need to copy */
|
/* keep a GstVideoInfo with defaults for the when we need to copy */
|
||||||
|
|
Loading…
Reference in a new issue