config_add_option
function config_add_option(config:Gst.Structure, option:String):void {
// Gjs wrapper for gst_buffer_pool_config_add_option()
}Enabled the option in config. This will instruct the @bufferpool to enable the specified option on the buffers that it allocates.
The supported options by @pool can be retrieved with Gst.BufferPool.prototype.get_options.
- config
a Gst.BufferPool configuration
- option
an option to add