Wait a little longer to allow the master clock to stabilise.

This commit is contained in:
Mike Brady
2021-06-24 10:45:32 +01:00
parent ce49f3a9fd
commit 33dd3037da
+1 -1
View File
@@ -1299,7 +1299,7 @@ int get_ptp_anchor_local_time_info(rtsp_conn_info *conn, uint32_t *anchorRTP,
// if the master clock and the anchor clock are the same
// wait at least this time before using the new master clock
// note that mastershipo may be backdated
if (duration_of_mastership < 1100000000) {
if (duration_of_mastership < 1500000000) {
debug(3,"master not old enough yet: %f ms", 0.000001 * duration_of_mastership);
response = clock_not_ready;
} else if ((duration_of_mastership > 5000000000) ||