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:
Aurélien Zanelli 2016-01-06 15:49:59 +01:00 committed by Nicolas Dufresne
parent 9b9f913809
commit c119715e25

View file

@ -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);