This function is normally used in unit tests that want to verify that a
particular element is outputting correct buffers. For example, you would make
a pipeline via gst_parse_launch(), pull out the pad you want to monitor, then
call gst_buffer_straw_get_buffer() to get the buffers that pass through pad
.
The pipeline will block until you have sucked off the buffers.

Note that you may not start two buffer straws at the same time. This function
is intended for unit tests, not general API use. In fact it calls fail_if
from libcheck, so you cannot use it outside unit tests.

Parameters

bin

the pipeline to run

pad

a pad on an element in bin

gst_buffer_straw_get_buffer ()

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.