From a4c6f9a27f15898617857fd685774939ed97000a Mon Sep 17 00:00:00 2001 From: Christian Glombek Date: Wed, 12 Jul 2023 20:25:42 +0200 Subject: [PATCH] Revert "module-raop: zero uppet timestamp bits" This reverts commit 21d16b1ad5499233037097a1e70b3bf1d3935c2b. The change causes the sound of videos to be way out of sync when streaming from Fedora to Sonos. It seems the issue is a device-specific quirk, and the change cannot be applied universally to all devices, thus reverting until a better solution is found that does not affect other devices. --- src/modules/module-raop-sink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/module-raop-sink.c b/src/modules/module-raop-sink.c index fc7072dea..58d1596a0 100644 --- a/src/modules/module-raop-sink.c +++ b/src/modules/module-raop-sink.c @@ -318,7 +318,7 @@ static int send_udp_sync_packet(struct impl *impl, pkt[0] |= htonl(0x10000000); pkt[1] = htonl(rtptime - latency); transmitted = ntp_now(); - pkt[2] = htonl((transmitted >> 32) & 0x0000ffff); + pkt[2] = htonl(transmitted >> 32); pkt[3] = htonl(transmitted & 0xffffffff); pkt[4] = htonl(rtptime);