Harness.createBuffer

Allocates a buffer using a #GstBufferPool if present, or else using the configured #GstAllocator and #GstAllocationParams

MT safe.

class Harness
createBuffer
(
size_t size
)

Parameters

size size_t

a #gsize specifying the size of the buffer

Return Value

Type: gst.buffer.Buffer

a #GstBuffer of size size