]> git.ipfire.org Git - thirdparty/shairport-sync.git/commitdiff
Its 353 not 363.
authorMike Brady <mikebrady@eircom.net>
Fri, 4 May 2018 19:21:47 +0000 (20:21 +0100)
committerMike Brady <mikebrady@eircom.net>
Fri, 4 May 2018 19:21:47 +0000 (20:21 +0100)
RELEASENOTES.md
rtp.c

index c3bfa5266c31aa30dc27fd5bafac5256454d4a47..400dc5043612802a7c76fb427e84d52a129755cd 100644 (file)
@@ -1,7 +1,7 @@
 Version 3.2d45
 ====
 **Enhancement**
-* Restore the old method for calculating latency for older AirPlay sources: an AirPlay source displaying an AirPlay User Agent string verion of 363 or older -- corresponding to iOS 11.1.2 or older -- will add an extra 0.25 seconds to the latency requested. This seems to be right.
+* Restore the old method for calculating latency for older AirPlay sources: an AirPlay source displaying an AirPlay User Agent string verion of 353 or older -- corresponding to iOS 11.1.2 or older -- will add an extra 0.25 seconds to the latency requested. This seems to be right.
 
 Version 3.2d44
 ====
diff --git a/rtp.c b/rtp.c
index 61a622629137a55fbecf106f5e1a7b37c88c9195..18bcc1981c8cafb56478e9f8c5f81443edba03cf 100644 (file)
--- a/rtp.c
+++ b/rtp.c
@@ -303,11 +303,11 @@ 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 <= 363))) {
+              if ((flags == 7) || ((conn->AirPlayVersion > 0) && (conn->AirPlayVersion <= 353))) {
                 la += config.fixedLatencyOffset;
                 debug(3, "A fixed latency offset of %d frames has been added, giving a latency of "
                          "%" PRId64
-                         " frames with flags: %d and AirPlay version %d (triggers if 363 or less).",
+                         " frames with flags: %d and AirPlay version %d (triggers if 353 or less).",
                       config.fixedLatencyOffset, la, flags, conn->AirPlayVersion);
               }
               if ((conn->maximum_latency) && (conn->maximum_latency < la))