CollectPads.readBuffer

Get a subbuffer of @size bytes from the given pad @data.

This function should be called with @pads STREAM_LOCK held, such as in the callback.

MT safe.

class CollectPads
readBuffer

Parameters

data GstCollectData*

the data to use

size uint

the number of bytes to read

Return Value

Type: Buffer

A sub buffer. The size of the buffer can be less that requested. A return of %NULL signals that the pad is end-of-stream. Unref the buffer after use.

Meta