handle resync delay properly (bug #4560)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5953 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Kevin P. Fleming
2005-06-21 01:30:10 +00:00
parent 52e26805e7
commit b7c4aa541a

View File

@@ -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_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.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 { } else {
return -1; return -1;
} }