Harness.findElement

Most useful in conjunction with gst_harness_new_parse, this will scan the #GstElements inside the #GstHarness, and check if any of them matches element_name. Typical usecase being that you need to access one of the harnessed elements for properties and/or signals.

MT safe.

class Harness
findElement
()

Parameters

elementName string

a #gchar with a #GstElementFactory name

Return Value

Type: gst.element.Element

a #GstElement or null if not found