]> git.ipfire.org Git - thirdparty/shairport-sync.git/commitdiff
Fix small bug
authorMike Brady <mikebrady@eircom.net>
Sat, 21 Jan 2017 17:30:11 +0000 (17:30 +0000)
committerGitHub <noreply@github.com>
Sat, 21 Jan 2017 17:30:11 +0000 (17:30 +0000)
Thanks to @jief666 for the fix.

rtp.c

diff --git a/rtp.c b/rtp.c
index aad447fb0aeeb0385a3a6d8b41dbabfe111db8dd..7f8abee207c3fa2e1dc1a60396cbb295c04acec1 100644 (file)
--- a/rtp.c
+++ b/rtp.c
@@ -480,7 +480,7 @@ void *rtp_timing_receiver(void *arg) {
       if (first_local_time == 0) {
         first_local_time = local_time_chosen;
         first_remote_time = remote_time_chosen;
-        uint64_t clock_drift = 0;
+        clock_drift = 0;
       } else {
         uint64_t local_time_change = local_time_chosen - first_local_time;
         uint64_t remote_time_change = remote_time_chosen - first_remote_time;