RTPBasePayload.allocateOutputBuffer

gst.buffer.Buffer allocateOutputBuffer(uint payloadLen, ubyte padLen, ubyte csrcCount)

Allocate a new #GstBuffer with enough data to hold an RTP packet with minimum csrc_count CSRCs, a payload length of payload_len and padding of pad_len. If payload has #GstRTPBasePayload:source-info true additional CSRCs may be allocated and filled with RTP source information.

Parameters

payloadLenthe length of the payload
padLenthe amount of padding
csrcCountthe minimum number of CSRC entries

Returns

A newly allocated buffer that can hold an RTP packet with given

parameters.