Element.setClock

bool setClock(gst.clock.Clock clock = null)

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

Parameters

clockthe #GstClock to set for the element.

Returns

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.