Gst.Element.prototype.set_clock
function set_clock(clock:Gst.Clock):Boolean { // Gjs wrapper for gst_element_set_clock() }
Sets the clock for the element. This function increases the refcount on the clock. Any previously set clock on the object is unreffed.
- clock
the Gst.Clock 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.