From: Mike Brady Date: Fri, 4 May 2018 19:21:47 +0000 (+0100) Subject: Its 353 not 363. X-Git-Tag: 3.2RC6~1^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b0db1b228c68b2abd3405041d82eefb2c8061224;p=thirdparty%2Fshairport-sync.git Its 353 not 363. --- diff --git a/RELEASENOTES.md b/RELEASENOTES.md index c3bfa526..400dc504 100644 --- a/RELEASENOTES.md +++ b/RELEASENOTES.md @@ -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 61a62262..18bcc198 100644 --- 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))