From c119715e252a0ad85878fa438a7e2c81706dd2d8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Aur=C3=A9lien=20Zanelli?= Date: Wed, 6 Jan 2016 15:49:59 +0100 Subject: [PATCH] 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 --- gst-libs/gst/video/gstvideopool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst-libs/gst/video/gstvideopool.c b/gst-libs/gst/video/gstvideopool.c index 62026e9..f2ef276 100644 --- a/gst-libs/gst/video/gstvideopool.c +++ b/gst-libs/gst/video/gstvideopool.c @@ -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); -- 2.7.4