Gst.BufferPool.prototype.set_config
function set_config(config:Gst.Structure):Boolean { // Gjs wrapper for gst_buffer_pool_set_config() }
Set the configuration of the pool. The pool must be inactive and all buffers allocated form this pool must be returned or else this function will do nothing and return FALSE.
config is a Gst.Structure that contains the configuration parameters for the pool. A default and mandatory set of parameters can be configured with Gst.config_set_params, Gst.config_set_allocator and Gst.config_add_option.
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.BufferPool.prototype.get_config.
This function takes ownership of config.
- config
- Returns
TRUE when the configuration could be set.