Ignore:
Timestamp:
Jan 3, 2014 3:44:05 AM (10 years ago)
Author:
nanang
Message:

Close #1720:

  • Added configure flags --with-external-srtp and --disable-resample.
  • Added macro setting PJMEDIA_LIBSRTP_AUTO_INIT_DEINIT to allow application to handle libsrtp init & deinit by itself.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia/transport_srtp.c

    r4613 r4701  
    3131#if defined(PJMEDIA_HAS_SRTP) && (PJMEDIA_HAS_SRTP != 0) 
    3232 
    33 #include <srtp.h> 
     33#if defined(PJMEDIA_EXTERNAL_SRTP) && (PJMEDIA_EXTERNAL_SRTP != 0) 
     34#  include <srtp/srtp.h> 
     35#else 
     36#  include <srtp.h> 
     37#endif 
    3438 
    3539#define THIS_FILE   "transport_srtp.c" 
     
    277281PJ_DEF(pj_status_t) pjmedia_srtp_init_lib(pjmedia_endpt *endpt) 
    278282{ 
     283#if PJMEDIA_LIBSRTP_AUTO_INIT_DEINIT 
    279284    if (libsrtp_initialized == PJ_FALSE) { 
    280285        err_status_t err; 
     
    299304        libsrtp_initialized = PJ_TRUE; 
    300305    } 
     306#else 
     307    PJ_UNUSED_ARG(endpt); 
     308#endif 
    301309     
    302310    return PJ_SUCCESS; 
Note: See TracChangeset for help on using the changeset viewer.