BufferPool.setActive

Control the active state of pool. When the pool is inactive, new calls to gst_buffer_pool_acquire_buffer() will return with GST_FLOW_FLUSHING. Activating the bufferpool will preallocate all resources in the pool based on the configuration of the pool. Deactivating will free the resources again when there are no outstanding buffers. When there are outstanding buffers, they will be freed as soon as they are all returned to the pool.

class BufferPool
int
setActive
(
int active
)

Parameters

active int

the new active state

Return Value

Type: int

FALSE when the pool was not configured or when preallocation of the buffers failed.

Meta