From: Kevin P. Fleming Date: Tue, 21 Jun 2005 01:30:10 +0000 (+0000) Subject: handle resync delay properly (bug #4560) X-Git-Tag: 1.2.0-beta1~424 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b7c4aa541ae5bfa6068820456bf389cb397a3b19;p=thirdparty%2Fasterisk.git handle resync delay properly (bug #4560) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5953 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/jitterbuf.c b/jitterbuf.c index 16dd4bfe7a..97d17e0354 100755 --- a/jitterbuf.c +++ b/jitterbuf.c @@ -135,7 +135,7 @@ static int history_put(jitterbuf *jb, long ts, long now, long ms) jb_warn("Resyncing the jb. last_delay %ld, this delay %ld, threshold %ld, new offset %ld\n", jb->info.last_delay, delay, threshold, ts - now); jb->info.resync_offset = ts - now; - jb->info.last_delay = 0; /* after resync, frame is right on time */ + jb->info.last_delay = delay = 0; /* after resync, frame is right on time */ } else { return -1; }