Buffer.insertMemory
void insertMemory(int idx, gst.memory.Memory mem)Inserts the memory block mem into buffer at idx. This function takes ownership of mem and thus doesn't increase its refcount.
Only [gst.buffer.Buffer.getMaxMemory] can be added to a buffer. If more memory is added, existing memory blocks will automatically be merged to make room for the new memory.
Parameters
idx | the index to add the memory at, or -1 to append it to the end |
mem | a #GstMemory. |