Adapter.takeBufferList

Returns a gstreamer.BufferList of buffers containing the first nbytes bytes of the adapter. The returned bytes will be flushed from the adapter. When the caller can deal with individual buffers, this function is more performant because no memory should be copied.

Caller owns the returned list. Call Buffer.listUnref to free the list after usage.

class Adapter
takeBufferList
(
size_t nbytes
)

Parameters

nbytes size_t

the number of bytes to take

Return Value

a gstreamer.BufferList of buffers containing the first nbytes of the adapter, or NULL if nbytes bytes are not available

Meta