Changeset 4325 for pjproject/trunk


Ignore:
Timestamp:
Jan 18, 2013 8:47:39 AM (12 years ago)
Author:
bennylp
Message:

Fixed #1612: problems with jitter buffer fixed mode operation (prefetch may go lower than configured minimum prefetch, and the discard needs to be disabled too)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia/jbuf.c

    r4100 r4325  
    600600        jb->jb_prefetch = jb->jb_init_prefetch = prefetch; 
    601601 
     602    pjmedia_jbuf_set_discard(jb, PJMEDIA_JB_DISCARD_NONE); 
    602603    return PJ_SUCCESS; 
    603604} 
     
    725726                if (jb->jb_prefetch < jb->jb_min_prefetch)  
    726727                    jb->jb_prefetch = jb->jb_min_prefetch; 
     728                if (jb->jb_prefetch > jb->jb_max_prefetch) 
     729                    jb->jb_prefetch = jb->jb_max_prefetch; 
    727730            } 
    728731 
     
    748751            if (jb->jb_prefetch > jb->jb_max_prefetch) 
    749752                jb->jb_prefetch = jb->jb_max_prefetch; 
     753            if (jb->jb_prefetch < jb->jb_min_prefetch) 
     754                jb->jb_prefetch = jb->jb_min_prefetch; 
    750755        } 
    751756 
Note: See TracChangeset for help on using the changeset viewer.