checkElementPushBuffer

Create an element using the factory providing the element_name and push the buffer_in to this element. The element should create one buffer and this will be compared with buffer_out. We only check the caps and the data of the buffers. This function unrefs the buffers.

Parameters

elementName string

name of the element that needs to be created

bufferIn gst.buffer.Buffer

push this buffer to the element

capsIn gst.caps.Caps

the #GstCaps expected of the sinkpad of the element

bufferOut gst.buffer.Buffer

compare the result with this buffer

capsOut gst.caps.Caps

the #GstCaps expected of the srcpad of the element