aboutsummaryrefslogtreecommitdiffstats
path: root/main/jitterbuf.c
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-01-25 19:18:33 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-01-25 19:18:33 +0000
commit68b1f90265e123f72667c3698d53b31ea000cd07 (patch)
tree5aabdeb7fc969fb4a845107ac3760e520e1b6874 /main/jitterbuf.c
parenta0b72636bbc2e0da67d5739a261b2e52dd691c6c (diff)
Merged revisions 52264 via svnmerge from
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: http://svn.digium.com/svn/asterisk/branches/1.4@52265 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/jitterbuf.c')
-rw-r--r--main/jitterbuf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/jitterbuf.c b/main/jitterbuf.c
index a541d67e5..05e29a4a4 100644
--- a/main/jitterbuf.c
+++ b/main/jitterbuf.c
@@ -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)