Harness.addSrcHarness

A src-harness is a great way of providing the #GstHarness with data. By adding a src-type #GstElement, it is then easy to use functions like gst_harness_push_from_src or gst_harness_src_crank_and_push_many to provide your harnessed element with input. The has_clock_wait variable is a great way to control you src-element with, in that you can have it produce a buffer for you by simply cranking the clock, and not have it spin out of control producing buffers as fast as possible.

If a src-harness already exists it will be replaced.

MT safe.

class Harness
void
addSrcHarness

Parameters

srcHarness gstcheck.harness.Harness

a #GstHarness to be added as a src-harness.

hasClockWait bool

a #gboolean specifying if the #GstElement uses gst_clock_wait_id internally.