Ignore:
Timestamp:
Mar 22, 2012 11:29:20 AM (9 years ago)
Author:
nanang
Message:

Close #1466 (using PJLIB outside PJSUA-LIB context):

  • static reference counter for PJLIB init/shutdown.
  • implemented atexit() in PJMEDIA and PJSIP level: pjmedia_endpt_atexit() & pjsip_endpt_atexit().
  • updated pjmedia/transport_srtp.c, pjsip/sip_timer.c, and pjsip/sip_replaces.c to use the new atexit() functions.
  • API change: pjmedia_srtp_init_lib() now requires 'pjmedia_endpt' param.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/1.x/pjsip/src/pjsua-lib/pjsua_media.c

    r3962 r3986  
    336336 
    337337#if defined(PJMEDIA_HAS_SRTP) && (PJMEDIA_HAS_SRTP != 0) 
    338     /* Initialize SRTP library. */ 
    339     status = pjmedia_srtp_init_lib(); 
     338    /* Initialize SRTP library (ticket #788). */ 
     339    status = pjmedia_srtp_init_lib(pjsua_var.med_endpt); 
    340340    if (status != PJ_SUCCESS) { 
    341341        pjsua_perror(THIS_FILE, "Error initializing SRTP library",  
Note: See TracChangeset for help on using the changeset viewer.