fix some lines that should not have been removed (bug #4251)
authorRussell Bryant <russell@russellbryant.com>
Thu, 12 May 2005 19:21:41 +0000 (19:21 +0000)
committerRussell Bryant <russell@russellbryant.com>
Thu, 12 May 2005 19:21:41 +0000 (19:21 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5640 65c4cc65-6c06-0410-ace0-fbb531ad65f3

jitterbuf.c

index 3bdd3b5..26d58cb 100755 (executable)
@@ -310,11 +310,16 @@ static void queue_put(jitterbuf *jb, void *data, int type, long ms, long ts)
                jb->frames = frame;
                frame->next = frame;
                frame->prev = frame;
+       } else if (ts < jb->frames->ts) {
+               frame->next = jb->frames;
                frame->prev = jb->frames->prev;
 
                frame->next->prev = frame;
                frame->prev->next = frame;
 
+               /* frame is out of order */
+               jb->info.frames_ooo++;
+
                jb->frames = frame;
        } else { 
                p = jb->frames;