CollectPads.flush

uint flush(gstbase.collect_data.CollectData data, uint size)

Flush size bytes from the pad data.

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

MT safe.

Parameters

datathe data to use
sizethe number of bytes to flush

Returns

The number of bytes flushed This can be less than size and

is 0 if the pad was end-of-stream.