do_element_check(pipeline_str,
element_name,
check_proc,
state=None,
set_state_deferred=False)
| source code
|
Parse the given pipeline and set it to the given state. When the bin
reaches that state, perform the given check function on the element with
the given name.
- Parameters:
pipeline_str - description of the pipeline used to test
element_name - name of the element being checked
check_proc - a function to call with the GstElement as argument.
state - an unused keyword parameter that will be removed when support for
GStreamer 0.8 is dropped.
set_state_deferred (bool) - a flag to say whether the set_state is run in a deferToThread
- Returns:
twisted.internet.defer.Deferred
- a deferred that will fire with the result of check_proc, or fail.
|