be less that requested. A return of null signals that the pad is end-of-stream. Unref the buffer after use.
CollectPads.takeBuffer
gst.buffer.Buffer takeBuffer(gstbase.collect_data.CollectData data, uint size)Get a subbuffer of size bytes from the given pad data. Flushes the amount of read bytes.
This function should be called with pads STREAM_LOCK held, such as in the callback.
MT safe.
Parameters
data | the data to use |
size | the number of bytes to read |
Returns
A sub buffer. The size of the buffer can