]> git.ipfire.org Git - thirdparty/shairport-sync.git/commitdiff
Allow for a change in the sync time of AirPlay on Mojave and iOS 12.
authorMike Brady <mikebrady@eircom.net>
Thu, 11 Oct 2018 14:35:17 +0000 (15:35 +0100)
committerMike Brady <mikebrady@eircom.net>
Thu, 11 Oct 2018 14:35:17 +0000 (15:35 +0100)
rtp.c

diff --git a/rtp.c b/rtp.c
index 253318f2234541663c26bc0a7332a52c666e17d2..b8c8ee526d8a866f36a72ac86b5b26ba65cd7425 100644 (file)
--- 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
                 // "