bufferpool: check min/max_buffers

This commit is contained in:
Wim Taymans 2012-03-26 17:38:50 +02:00
parent ce90970be2
commit 3776eb9e25

View file

@ -645,6 +645,7 @@ gst_buffer_pool_config_set_params (GstStructure * config, const GstCaps * caps,
guint size, guint min_buffers, guint max_buffers)
{
g_return_if_fail (config != NULL);
g_return_if_fail (max_buffers == 0 || min_buffers <= max_buffers);
gst_structure_id_set (config,
GST_QUARK (CAPS), GST_TYPE_CAPS, caps,