Sample.getBuffer

gst.buffer.Buffer getBuffer()

Get the buffer associated with sample

Returns

the buffer of sample or null

when there is no buffer. The buffer remains valid as long as sample is valid. If you need to hold on to it for longer than that, take a ref to the buffer with gst_buffer_ref().