config_set_allocator

function config_set_allocator(config:Gst.Structure, allocator:Gst.Allocator, params:Gst.AllocationParams):void {
    // Gjs wrapper for gst_buffer_pool_config_set_allocator()
}

Set the allocator and params on config.

One of allocator and params can be NULL, but not both. When allocator is NULL, the default allocator of the pool will use the values in @param to perform its allocation. When @param is NULL, the pool will use the provided allocator with its default Gst.AllocationParams.

A call to Gst.BufferPool.prototype.set_config can update the allocator and params with the values that it is able to do. Some pools are, for example, not able to operate with different allocators or cannot allocate with the values specified in params. Use Gst.BufferPool.prototype.get_config to get the currently used values.

config

a Gst.BufferPool configuration

allocator

a Gst.Allocator

params

Gst.AllocationParams