Changeset 5891 for pjproject


Ignore:
Timestamp:
Sep 26, 2018 12:56:51 AM (6 years ago)
Author:
ming
Message:

Re #2147 (misc): Fixed build error of undefined reference to `pjmedia_srtp_enum_crypto' if PJMEDIA_HAS_SRTP is disabled.

Thanks to Alexei Gradinari for the patch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsua2/endpoint.cpp

    r5878 r5891  
    21462146StringVector Endpoint::srtpCryptoEnum() throw(Error) 
    21472147{ 
     2148    StringVector result; 
     2149#if defined(PJMEDIA_HAS_SRTP) && (PJMEDIA_HAS_SRTP != 0) 
    21482150    unsigned cnt = PJMEDIA_SRTP_MAX_CRYPTOS; 
    21492151    pjmedia_srtp_crypto cryptos[PJMEDIA_SRTP_MAX_CRYPTOS]; 
    2150     StringVector result; 
    21512152 
    21522153    PJSUA2_CHECK_EXPR(pjmedia_srtp_enum_crypto(&cnt, cryptos)); 
     
    21542155    for (unsigned i = 0; i < cnt; ++i) 
    21552156        result.push_back(pj2Str(cryptos[i].name)); 
     2157#endif 
    21562158 
    21572159    return result; 
Note: See TracChangeset for help on using the changeset viewer.