Changeset 2763 for pjproject/trunk


Ignore:
Timestamp:
Jun 16, 2009 10:46:03 AM (15 years ago)
Author:
nanang
Message:

Ticket #808: Added compile time trap to avoid both implementations coexist.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/include/pjmedia-codec/config.h

    r2680 r2763  
    255255 
    256256 
     257/** 
     258 * Enabling both G.722.1 codec implementations, internal PJMEDIA and IPP, 
     259 * may cause problem in SDP, i.e: payload types duplications. So, let's  
     260 * just trap such case here at compile time. 
     261 * 
     262 * Application can control which implementation to be used by manipulating 
     263 * PJMEDIA_HAS_G7221_CODEC and PJMEDIA_HAS_INTEL_IPP_CODEC_G722_1 in 
     264 * config_site.h. 
     265 */ 
     266#if (PJMEDIA_HAS_G7221_CODEC != 0) && (PJMEDIA_HAS_INTEL_IPP != 0) && \ 
     267    (PJMEDIA_HAS_INTEL_IPP_CODEC_G722_1 != 0) 
     268#   error Only one G.722.1 implementation can be enabled at the same time. \ 
     269          Please use PJMEDIA_HAS_G7221_CODEC and \ 
     270          PJMEDIA_HAS_INTEL_IPP_CODEC_G722_1 in your config_site.h \ 
     271          to control which implementation to be used. 
     272#endif 
    257273 
    258274#endif  /* __PJMEDIA_CODEC_CONFIG_H__ */ 
Note: See TracChangeset for help on using the changeset viewer.