From 31499dcea8d2c82601271fad0bdbfb7470c00eba Mon Sep 17 00:00:00 2001 From: Mike Brady Date: Thu, 11 Oct 2018 15:35:17 +0100 Subject: [PATCH] Allow for a change in the sync time of AirPlay on Mojave and iOS 12. --- rtp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rtp.c b/rtp.c index 253318f2..b8c8ee52 100644 --- a/rtp.c +++ b/rtp.c @@ -332,7 +332,8 @@ void *rtp_control_receiver(void *arg) { uint16_t flags = nctohs(&packet[2]); int64_t la = sync_rtp_timestamp - rtp_timestamp_less_latency; // debug(3, "Latency derived just from the sync packet is %" PRId64 " frames.", la); - if ((flags == 7) || ((conn->AirPlayVersion > 0) && (conn->AirPlayVersion <= 353))) { + + if ((flags == 7) || ((conn->AirPlayVersion > 0) && (conn->AirPlayVersion <= 353)) || ((conn->AirPlayVersion > 0) && (conn->AirPlayVersion >= 371))) { la += config.fixedLatencyOffset; // debug(3, "A fixed latency offset of %d frames has been added, giving a latency of // "