Ignore:
Timestamp:
Jul 15, 2011 9:51:46 AM (10 years ago)
Author:
bennylp
Message:

Fixed #1294: New pjmedia_codec_register_audio_codecs() API to register all known codecs, and also added implementation to deregister all codecs when the media endpoint is destroyed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/projects/2.0-dev/pjsip-apps/src/samples/encdec.c

    r2394 r3661  
    239239 
    240240    /* Register all codecs */ 
    241 #if PJMEDIA_HAS_G711_CODEC 
    242     CHECK( pjmedia_codec_g711_init(mept) ); 
    243 #endif 
    244 #if PJMEDIA_HAS_GSM_CODEC 
    245     CHECK( pjmedia_codec_gsm_init(mept) ); 
    246 #endif 
    247 #if PJMEDIA_HAS_ILBC_CODEC 
    248     CHECK( pjmedia_codec_ilbc_init(mept, 30) ); 
    249 #endif 
    250 #if PJMEDIA_HAS_SPEEX_CODEC 
    251     CHECK( pjmedia_codec_speex_init(mept, 0, 5, 5) ); 
    252 #endif 
    253 #if PJMEDIA_HAS_G722_CODEC 
    254     CHECK( pjmedia_codec_g722_init(mept) ); 
    255 #endif 
     241    CHECK( pjmedia_codec_register_audio_codecs(mept, NULL) ); 
    256242 
    257243    pj_gettimeofday(&t0); 
Note: See TracChangeset for help on using the changeset viewer.