Adapter.getBuffer

Returns a gstreamer.Buffer containing the first nbytes of the adapter, but does not flush them from the adapter. See Adapter.takeBuffer for details.

Caller owns a reference to the returned buffer. Buffer.unref after usage.

Free-function: gst_buffer_unref

class Adapter
getBuffer
(
size_t nbytes
)

Parameters

nbytes size_t

the number of bytes to get

Return Value

Type: Buffer

a gstreamer.Buffer containing the first nbytes of the adapter, or NULL if nbytes bytes are not available. Buffer.unref when no longer needed.

Meta