Ignore:
Timestamp:
May 13, 2006 10:46:23 PM (18 years ago)
Author:
bennylp
Message:

Another major modifications in PJMEDIA:

  • handle multiple frames in one packet
  • split stream creation into two steps to allow customization
  • PLC framework and implementation with G.711 and speex
  • stream returns NO_FRAME correctly.
  • added ptime argument in pjsua
File:
1 edited

Legend:

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

    r436 r438  
    433433} 
    434434 
    435 PJ_DEF(pj_status_t) pjmedia_jbuf_put_frame(pjmedia_jbuf *jb,  
    436                                            const void *frame,  
    437                                            pj_size_t frame_size,  
    438                                            int frame_seq) 
     435PJ_DEF(void) pjmedia_jbuf_put_frame( pjmedia_jbuf *jb,  
     436                                     const void *frame,  
     437                                     pj_size_t frame_size,  
     438                                     int frame_seq) 
    439439{ 
    440440    pj_size_t min_frame_size; 
     
    476476        jb_framelist_put_at(&jb->jb_framelist,frame_seq,frame,min_frame_size); 
    477477    } 
    478  
    479     return PJ_SUCCESS; 
    480478} 
    481479 
     
    483481 * Get frame from jitter buffer. 
    484482 */ 
    485 PJ_DEF(pj_status_t) pjmedia_jbuf_get_frame( pjmedia_jbuf *jb,  
    486                                             void *frame,  
    487                                             char *p_frame_type) 
     483PJ_DEF(void) pjmedia_jbuf_get_frame( pjmedia_jbuf *jb,  
     484                                     void *frame,  
     485                                     char *p_frame_type) 
    488486{ 
    489487    pjmedia_jb_frame_type ftype; 
     
    507505            *p_frame_type = PJMEDIA_JB_ZERO_PREFETCH_FRAME; 
    508506 
    509         return PJ_SUCCESS; 
     507        return; 
    510508    } 
    511509 
     
    516514        *p_frame_type = PJMEDIA_JB_ZERO_EMPTY_FRAME; 
    517515 
    518         return PJ_SUCCESS; 
     516        return; 
    519517    } 
    520518 
     
    526524    else  
    527525        *p_frame_type   = PJMEDIA_JB_MISSING_FRAME; 
    528      
    529  
    530     return PJ_SUCCESS; 
    531526} 
    532527 
Note: See TracChangeset for help on using the changeset viewer.