add_sink_harness


Description:

[ CCode ( cname = "gst_harness_add_sink_harness" ) ]
public void add_sink_harness (owned Harness sink_harness)

Similar to gst_harness_add_src, this allows you to send the data coming out of your harnessed Element to a sink-element, allowing to test different responses the element output might create in sink elements.

An example might be an existing sink providing some analytical data on the input it receives that can be useful to your testing. If the goal is to test a sink-element itself, this is better achieved using gst_harness_new directly on the sink.

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

MT safe.

Parameters:

this

a Harness

sink_harness

a Harness to be added as a sink-harness.