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/pjsip-perf.c

    r2408 r3661  
    929929 
    930930    /* Must register all codecs to be supported */ 
    931 #if defined(PJMEDIA_HAS_G711_CODEC) && PJMEDIA_HAS_G711_CODEC!=0 
    932     pjmedia_codec_g711_init(app.med_endpt); 
    933 #endif 
    934 #if defined(PJMEDIA_HAS_GSM_CODEC) && PJMEDIA_HAS_GSM_CODEC!=0 
    935     pjmedia_codec_gsm_init(app.med_endpt); 
    936 #endif 
    937 #if defined(PJMEDIA_HAS_SPEEX_CODEC) && PJMEDIA_HAS_SPEEX_CODEC!=0 
    938     pjmedia_codec_speex_init(app.med_endpt, PJMEDIA_SPEEX_NO_UWB, 3, 3); 
    939 #endif 
    940 #if defined(PJMEDIA_HAS_G722_CODEC) && PJMEDIA_HAS_G722_CODEC!=0 
    941     pjmedia_codec_g722_init(app.med_endpt); 
    942 #endif 
     931    pjmedia_codec_register_audio_codecs(app.med_endpt, NULL); 
    943932 
    944933    /* Init dummy socket addresses */ 
Note: See TracChangeset for help on using the changeset viewer.