-
public weak Buffer buffer_straw_get_buffer (Element bin, 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
buffer_straw_start_pipeline on
-
public void buffer_straw_start_pipeline (Element bin, Pad pad)
Sets up a pipeline for buffer sucking. This will allow you to call
buffer_straw_get_buffer to access buffers as they pass over pad
. 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 parse_launch, pull
out the pad you want to monitor, then call buffer_straw_get_buffer to
get the buffers that pass through pad. The pipeline will block until you have sucked off the buffers. This function
will set the state of bin to PLAYING; to clean up, be sure to call
buffer_straw_stop_pipeline. 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.
-
public void buffer_straw_stop_pipeline (Element bin, Pad pad)
-
public void check_abi_list (CheckABIStruct[] list, bool have_abi_sizes)
-
public void check_caps_equal (Caps caps1, Caps caps2)
Compare two caps with gst_caps_is_equal and fail unless they are equal.
-
public FlowReturn check_chain_func (Pad pad, Buffer buffer)
-
public void check_drop_buffers ()
Unref and remove all buffers that are in the global buffers GList, emptying the list.
-
public void check_element_push_buffer (string element_name, Buffer buffer_in, Buffer buffer_out)
Create an element with the factory with the name and push the and this will be compared
with buffer_out. We only check the caps and the data of the buffers. This function unrefs the buffers.
-
public void check_element_push_buffer_list (string element_name, List<Buffer> buffer_in, List<Buffer> buffer_out, FlowReturn last_flow_return)
Create an element with the factory with the name and push the buffers in the buffers in
buffer_out. We only check the caps, size and the data of the buffers. This function unrefs the buffers in the two
lists. The last_flow_return parameter indicates the expected flow return value from pushing the final buffer in the list. This can
be used to set up a test which pushes some buffers and then an invalid buffer, when the final buffer is expected to fail, for
example.
-
public void check_init (int argc, string argv)
-
public void check_message_error (Message message, MessageType type, Quark domain, int code)
-
public int check_run_suite (void* suite, string name, string fname)
-
public Element check_setup_element (string factory)
-
public Pad check_setup_sink_pad (Element element, StaticPadTemplate template, Caps caps)
-
public Pad check_setup_sink_pad_by_name (Element element, StaticPadTemplate template, string name)
-
public Pad check_setup_src_pad (Element element, StaticPadTemplate template, Caps caps)
-
public Pad check_setup_src_pad_by_name (Element element, StaticPadTemplate template, string name)
-
public void check_teardown_element (Element element)
-
public void check_teardown_pad_by_name (Element element, string name)
-
public void check_teardown_sink_pad (Element element)
-
public void check_teardown_src_pad (Element element)