aboutsummaryrefslogtreecommitdiffstats
path: root/jitterbuf.c
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-06-21 01:30:10 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-06-21 01:30:10 +0000
commit2150b9d7529697af6cbd415e31a28d93102a7853 (patch)
treeac089714d96491d1a457c0a57263e47cb38f57f6 /jitterbuf.c
parent0b88edf376323199e0cbb04d61051ff102760b1f (diff)
handle resync delay properly (bug #4560)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5953 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'jitterbuf.c')
-rwxr-xr-xjitterbuf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/jitterbuf.c b/jitterbuf.c
index 16dd4bfe7..97d17e035 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;
}