From a7ee65cda0fe08f303ae56f0882658c090ff4b15 Mon Sep 17 00:00:00 2001 From: Mike Brady Date: Sun, 14 Oct 2018 10:18:16 +0100 Subject: [PATCH] Allow for changed AirPlay latencies in iOS 12 and mac OS Mojave (AirPlay version 371 and onwards) --- rtp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rtp.c b/rtp.c index 6a588b0b..a5db0aaa 100644 --- a/rtp.c +++ b/rtp.c @@ -300,7 +300,7 @@ 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 // "