Element.setClock

Sets the clock for the element. This function increases the refcount on the clock. Any previously set clock on the object is unreffed.

class Element
bool
setClock

Parameters

clock Clock

the gstreamer.Clock to set for the element.

Return Value

Type: bool

TRUE if the element accepted the clock. An element can refuse a clock when it, for example, is not able to slave its internal clock to the clock or when it requires a specific clock to operate.

MT safe.