ByteWriter.freeAndGetBuffer

gst.buffer.Buffer freeAndGetBuffer()

Frees writer and all memory allocated by it except the current data, which is returned as #GstBuffer.

Free-function: gst_buffer_unref

Returns

the current data as buffer. gst_buffer_unref()

after usage.