Changeset 4004
- Timestamp:
- Apr 2, 2012 8:30:58 AM (13 years ago)
- Location:
- pjproject/branches/1.x
- Files:
-
- 1 deleted
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/1.x/pjmedia/src/pjmedia/jbuf.c
r3814 r4004 167 167 * second. 168 168 */ 169 #if 1169 #if 0 170 170 # define TRACE__(args) PJ_LOG(5,args) 171 171 #else … … 405 405 if (framelist->origin - index < MAX_MISORDER) { 406 406 /* too late */ 407 PJ_LOG(5,(THIS_FILE, "frame too late (origin: %d, index: %d, size: %d, max: %d)", 408 framelist->origin, index, framelist->size, framelist->max_count)); 407 409 return PJ_ETOOSMALL; 408 410 } else { 409 411 /* sequence restart */ 412 PJ_LOG(5,(THIS_FILE, "sequence restart (origin: %d, index: %d, size: %d, max: %d)", 413 framelist->origin, index, framelist->size, framelist->max_count)); 410 414 framelist->origin = index - framelist->size; 411 415 } … … 425 429 if (distance > MAX_DROPOUT) { 426 430 /* jump too far, reset the buffer */ 431 PJ_LOG(5,(THIS_FILE, "jump too far, resetting (origin: %d, index: %d, size: %d, max: %d)", 432 framelist->origin, index, framelist->size, framelist->max_count)); 427 433 jb_framelist_reset(framelist); 428 434 framelist->origin = index; … … 430 436 } else { 431 437 /* otherwise, reject the frame */ 438 PJ_LOG(5,(THIS_FILE, "frame too far (origin: %d, index: %d, size: %d, max: %d)", 439 framelist->origin, index, framelist->size, framelist->max_count)); 432 440 return PJ_ETOOMANY; 433 441 } … … 438 446 439 447 /* if the slot is occupied, it must be duplicated frame, ignore it. */ 440 if (framelist->frame_type[pos] != PJMEDIA_JB_MISSING_FRAME) 448 if (framelist->frame_type[pos] != PJMEDIA_JB_MISSING_FRAME) { 449 PJ_LOG(5,(THIS_FILE, "exists (origin: %d, index: %d, size: %d, max: %d)", 450 framelist->origin, index, framelist->size, framelist->max_count)); 441 451 return PJ_EEXISTS; 452 } 442 453 443 454 /* put the frame into the slot */ … … 518 529 pj_math_stat_init(&jb->jb_burst); 519 530 520 pjmedia_jbuf_set_discard(jb, PJMEDIA_JB_DISCARD_PROGRESSIVE); 531 //pjmedia_jbuf_set_discard(jb, PJMEDIA_JB_DISCARD_PROGRESSIVE); 532 pjmedia_jbuf_set_discard(jb, PJMEDIA_JB_DISCARD_STATIC); 533 //pjmedia_jbuf_set_discard(jb, PJMEDIA_JB_DISCARD_NONE); 521 534 pjmedia_jbuf_reset(jb); 522 535
Note: See TracChangeset
for help on using the changeset viewer.