mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 23:06:49 +00:00
bufferpool: check min/max_buffers
This commit is contained in:
parent
ce90970be2
commit
3776eb9e25
1 changed files with 1 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue