Harness.addSinkHarness

Similar to gst_harness_add_src, this allows you to send the data coming out of your harnessed #GstElement 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.

class Harness
void
addSinkHarness

Parameters

sinkHarness gstcheck.harness.Harness

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