[asterisk-commits] file: branch 1.2 r52264 -
/branches/1.2/jitterbuf.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Thu Jan 25 12:15:30 MST 2007
Author: file
Date: Thu Jan 25 13:15:29 2007
New Revision: 52264
URL: http://svn.digium.com/view/asterisk?view=rev&rev=52264
Log:
Allow dequeueing of frames with negative timestamp by moving jitterbuffer frames check to jb_next. (issue #8546 reported by harmen)
Modified:
branches/1.2/jitterbuf.c
Modified: branches/1.2/jitterbuf.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/jitterbuf.c?view=diff&rev=52264&r1=52263&r2=52264
==============================================================================
--- branches/1.2/jitterbuf.c (original)
+++ branches/1.2/jitterbuf.c Thu Jan 25 13:15:29 2007
@@ -761,8 +761,8 @@
long jb_next(jitterbuf *jb)
{
if (jb->info.silence_begin_ts) {
- long next = queue_next(jb);
- if (next > 0) {
+ if (jb->frames) {
+ long next = queue_next(jb);
history_get(jb);
/* shrink during silence */
if (jb->info.target - jb->info.current < -JB_TARGET_EXTRA)
More information about the asterisk-commits
mailing list