check that ntp server has already initialized when video starts

This commit is contained in:
F. Duncanh
2024-04-23 14:50:08 -04:00
parent 1c0bd358e3
commit 78658bc9a9

View File

@@ -609,6 +609,11 @@ raop_rtp_mirror_thread(void *arg)
memcpy(sps_pps + sps_size + 8, payload + sps_size + 11, pps_size);
prepend_sps_pps = true;
uint64_t ntp_offset = 0;
ntp_offset = raop_ntp_convert_remote_time(raop_rtp_mirror->ntp, ntp_offset);
if (!ntp_offset) {
logger_log(raop_rtp_mirror->logger, LOGGER_WARNING, "ntp synchronization has not yet started: synchronized video may fail");
}
// h264codec_t h264;
// h264.version = payload[0];
// h264.profile_high = payload[1];