diff options
author | Aurélien Zanelli <aurelien.zanelli@parrot.com> | 2016-01-06 15:49:59 +0100 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2016-01-11 22:18:31 +0000 |
commit | b3d2160144dafec616b375f2d049182ac21d7f82 (patch) | |
tree | 7e3df898eed5480bbf5387717ccde69de466d8a0 | |
parent | 60e8f9074a45361711b0ba9ee929554f13a6d4a9 (diff) | |
download | gstreamer-plugins-base-b3d2160144dafec616b375f2d049182ac21d7f82.tar.gz |
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
-rw-r--r-- | gst-libs/gst/video/gstvideopool.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gst-libs/gst/video/gstvideopool.c b/gst-libs/gst/video/gstvideopool.c index 62026e919..f2ef276bd 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); |