Clock.setMaster

Set master as the master clock for clock. clock will be automatically calibrated so that Clock.getTime 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 Clock.getCalibration.

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.

class Clock
bool
setMaster

Parameters

master Clock

Return Value

Type: bool

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.