mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-30 12:49:40 +00:00
videopool: store videoinfo after choosing the biggest buffer size
Otherwise, pool could be negotiated with a size which will be different from the one used in allocation which is the GstVideoInfo. https://bugzilla.gnome.org/show_bug.cgi?id=760222
This commit is contained in:
parent
9b9f913809
commit
c119715e25
1 changed files with 1 additions and 1 deletions
|
@ -197,8 +197,8 @@ video_buffer_pool_set_config (GstBufferPool * pool, GstStructure * config)
|
|||
gst_buffer_pool_config_set_allocator (config, allocator, &priv->params);
|
||||
}
|
||||
}
|
||||
priv->info = info;
|
||||
info.size = MAX (size, info.size);
|
||||
priv->info = info;
|
||||
|
||||
gst_buffer_pool_config_set_params (config, caps, info.size, min_buffers,
|
||||
max_buffers);
|
||||
|
|
Loading…
Reference in a new issue