Gst.Clock.prototype.set_master

function set_master(master:Gst.Clock):Boolean {
    // Gjs wrapper for gst_clock_set_master()
}

Set master as the master clock for clock. clock will be automatically calibrated so that Gst.Clock.prototype.get_time reports the same time as the master clock.

A clock provider that slaves its clock to a master can get the current calibration values with Gst.Clock.prototype.get_calibration.

master can be null in which case clock will not be slaved anymore. It will however keep reporting its time adjusted with the last configured rate and time offsets.

master

a master Gst.Clock

Returns

true if the clock is capable of being slaved to a master clock. Trying to set a master on a clock without the #GST_CLOCK_FLAG_CAN_SET_MASTER flag will make this function return false. MT safe.