]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Merged revisions 52264 via svnmerge from
authorJoshua Colp <jcolp@digium.com>
Thu, 25 Jan 2007 19:18:33 +0000 (19:18 +0000)
committerJoshua Colp <jcolp@digium.com>
Thu, 25 Jan 2007 19:18:33 +0000 (19:18 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r52264 | file | 2007-01-25 14:15:29 -0500 (Thu, 25 Jan 2007) | 2 lines

Allow dequeueing of frames with negative timestamp by moving jitterbuffer frames check to jb_next. (issue #8546 reported by harmen)

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@52265 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/jitterbuf.c

index a541d67e52998addd200c031ff97487ed261e27b..05e29a4a473e6a6df546f8cfacfbb8d9660b9b64 100644 (file)
@@ -756,8 +756,8 @@ static enum jb_return_code _jb_get(jitterbuf *jb, jb_frame *frameout, long now,
 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)