BufferPool.configValidateParams
bool configValidateParams(gst.structure.Structure config, gst.caps.Caps caps, uint size, uint minBuffers, uint maxBuffers)Validates that changes made to config are still valid in the context of the expected parameters. This function is a helper that can be used to validate changes made by a pool to a config when [gst.buffer_pool.BufferPool.setConfig] returns false. This expects that caps haven't changed and that min_buffers aren't lower then what we initially expected. This does not check if options or allocator parameters are still valid, won't check if size have changed, since changing the size is valid to adapt padding.
Parameters
config | a #GstBufferPool configuration |
caps | the excepted caps of buffers |
size | the expected size of each buffer, not including prefix and padding |
minBuffers | the expected minimum amount of buffers to allocate. |
maxBuffers | the expect maximum amount of buffers to allocate or 0 for unlimited. |
Returns
true, if the parameters are valid in this context.