BufferPool.setConfig
bool setConfig(gst.structure.Structure config)Sets the configuration of the pool. If the pool is already configured, and the configuration hasn't changed, this function will return true. If the pool is active, this method will return false and active configuration will remain. Buffers allocated from this pool must be returned or else this function will do nothing and return false.
config is a #GstStructure that contains the configuration parameters for the pool. A default and mandatory set of parameters can be configured with [gst.buffer_pool.BufferPool.configSetParams], [gst.buffer_pool.BufferPool.configSetAllocator] and [gst.buffer_pool.BufferPool.configAddOption].
If the parameters in config can not be set exactly, this function returns false and will try to update as much state as possible. The new state can then be retrieved and refined with [gst.buffer_pool.BufferPool.getConfig].
This function takes ownership of config.
Parameters
config | a #GstStructure |