Ignore:
Timestamp:
Jul 29, 2009 12:14:21 PM (11 years ago)
Author:
bennylp
Message:

Ticket #923: New API to retrieve current jitter buffer state from a stream/session

  • added pjmedia_session_get_stream_stat_jbuf() and pjmedia_session_get_stream_stat_jbuf()
  • fixed const correctness in pjmedia_jbuf_get_state(), jb_framelist_size(), and pj_math_stat_get_stddev(),
  • modify the jitter buffer statistic log message printed by stream (it contains newlines)
File:
1 edited

Legend:

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

    r2672 r2844  
    212212 
    213213 
    214 static unsigned jb_framelist_size(jb_framelist_t *framelist)  
     214static unsigned jb_framelist_size(const jb_framelist_t *framelist)  
    215215{ 
    216216    return framelist->size; 
     
    469469PJ_DEF(pj_status_t) pjmedia_jbuf_destroy(pjmedia_jbuf *jb) 
    470470{ 
    471     TRACE__((jb->jb_name.ptr, "\n" 
    472             "  JB summary:\n" 
    473             "    size=%d prefetch=%d\n" 
    474             "    delay (min/max/avg/dev)=%d/%d/%d/%d ms\n" 
    475             "    burst (min/max/avg/dev)=%d/%d/%d/%d frames\n" 
    476             "    lost=%d discard=%d empty=%d\n", 
     471    TRACE__((jb->jb_name.ptr, "" 
     472            "JB summary:" 
     473            " size=%d prefetch=%d," 
     474            " delay (min/max/avg/dev)=%d/%d/%d/%d ms," 
     475            " burst (min/max/avg/dev)=%d/%d/%d/%d frames," 
     476            " lost=%d discard=%d empty=%d", 
    477477            jb->jb_framelist.size, jb->jb_prefetch, 
    478478            jb->jb_delay.min, jb->jb_delay.max, jb->jb_delay.mean,  
     
    766766 * Get jitter buffer state. 
    767767 */ 
    768 PJ_DEF(pj_status_t) pjmedia_jbuf_get_state( pjmedia_jbuf *jb, 
     768PJ_DEF(pj_status_t) pjmedia_jbuf_get_state( const pjmedia_jbuf *jb, 
    769769                                            pjmedia_jb_state *state ) 
    770770{ 
Note: See TracChangeset for help on using the changeset viewer.