Changeset 5772 for pjproject


Ignore:
Timestamp:
Apr 3, 2018 12:57:44 AM (7 years ago)
Author:
ming
Message:

Re #2059 (misc): Remove warning of unused functions if no audio codecs is enabled

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/test/mips_test.c

    r5607 r5772  
    6767#endif 
    6868 
     69#define HAS_AUDIO_CODECS (PJMEDIA_HAS_G711_CODEC || PJMEDIA_HAS_G722_CODEC ||\ 
     70                          PJMEDIA_HAS_GSM_CODEC || PJMEDIA_HAS_ILBC_CODEC || \ 
     71                          PJMEDIA_HAS_SPEEX_CODEC|| PJMEDIA_HAS_G7221_CODEC||\ 
     72                          PJMEDIA_HAS_OPENCORE_AMRNB_CODEC ||\ 
     73                          PJMEDIA_HAS_OPENCORE_AMRWB_CODEC ||\ 
     74                          PJMEDIA_HAS_L16_CODEC) 
    6975 
    7076 
     
    731737} 
    732738 
     739#if HAS_AUDIO_CODECS 
    733740static pjmedia_port* codec_encode_decode( pj_pool_t *pool, 
    734741                                          const char *codec, 
     
    793800    return &cp->base; 
    794801} 
     802#endif 
    795803 
    796804#if PJMEDIA_HAS_G711_CODEC 
     
    16971705} 
    16981706 
     1707#if HAS_AUDIO_CODECS 
    16991708static pjmedia_port* create_stream( pj_pool_t *pool, 
    17001709                                    const char *codec, 
     
    18231832    return port; 
    18241833} 
     1834#endif 
    18251835 
    18261836#if PJMEDIA_HAS_G711_CODEC 
Note: See TracChangeset for help on using the changeset viewer.