Ignore:
Timestamp:
Jan 29, 2013 8:09:15 AM (12 years ago)
Author:
ming
Message:

Re #1608: Fixed the way codec is initialized, enumerated, and deinit since both NB and WB use the same factory

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia-codec/audio_codecs.c

    r4331 r4335  
    108108#endif  /* PJMEDIA_HAS_L16_CODEC */ 
    109109 
    110 #if PJMEDIA_HAS_OPENCORE_AMRNB_CODEC 
    111     /* Register OpenCORE AMR-NB */ 
    112     status = pjmedia_codec_opencore_amrnb_init(endpt); 
    113     if (status != PJ_SUCCESS) 
    114         return status; 
    115 #endif 
    116      
    117 #if PJMEDIA_HAS_OPENCORE_AMRWB_CODEC 
    118     /* Register OpenCORE AMR-WB */ 
    119     status = pjmedia_codec_opencore_amrwb_init(endpt); 
     110#if PJMEDIA_HAS_OPENCORE_AMRNB_CODEC || PJMEDIA_HAS_OPENCORE_AMRWB_CODEC 
     111    /* Register OpenCORE AMR */ 
     112    status = pjmedia_codec_opencore_amr_init(endpt, 0); 
    120113    if (status != PJ_SUCCESS) 
    121114        return status; 
Note: See TracChangeset for help on using the changeset viewer.