bufferStrawGetBuffer
fn
gst.buffer.Buffer bufferStrawGetBuffer(gst.element.Element bin, gst.pad.Pad pad)Get one buffer from pad. Implemented via buffer probes. This function will block until the pipeline passes a buffer over pad, so for robust behavior in unit tests, you need to use check's timeout to fail out in the case that a buffer never arrives.
You must have previously called [gstcheck.global.bufferStrawStartPipeline] on pipeline and pad.
Parameters
bin | the pipeline previously started via [gstcheck.global.bufferStrawStartPipeline] |
pad | the pad previously passed to [gstcheck.global.bufferStrawStartPipeline] |
Returns
the captured #GstBuffer.