]> git.ipfire.org Git - thirdparty/shairport-sync.git/commitdiff
Allow for changed AirPlay latencies in iOS 12 and mac OS Mojave (AirPlay version...
authorMike Brady <mikebrady@eircom.net>
Sun, 14 Oct 2018 09:18:16 +0000 (10:18 +0100)
committerMike Brady <mikebrady@eircom.net>
Sun, 14 Oct 2018 09:18:16 +0000 (10:18 +0100)
rtp.c

diff --git a/rtp.c b/rtp.c
index 6a588b0b0b9c755fb1b28c9d109922898e80ab24..a5db0aaa8431c963d9a35c9ffedb5b7d847604cc 100644 (file)
--- 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
                 // "