Ignore:
Timestamp:
Apr 14, 2009 3:18:30 PM (16 years ago)
Author:
nanang
Message:

Ticket #788: Updated pjsua_media_subsys_init() to perform SRTP library initialization.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsua-lib/pjsua_media.c

    r2563 r2597  
    279279                                      &pjsua_var.null_port); 
    280280    PJ_ASSERT_RETURN(status == PJ_SUCCESS, status); 
     281 
     282#if defined(PJMEDIA_HAS_SRTP) && (PJMEDIA_HAS_SRTP != 0) 
     283    /* Initialize SRTP library. */ 
     284    status = pjmedia_srtp_init_lib(); 
     285    if (status != PJ_SUCCESS) { 
     286        pjsua_perror(THIS_FILE, "Error initializing SRTP library",  
     287                     status); 
     288        return status; 
     289    } 
     290#endif 
    281291 
    282292    /* Perform NAT detection */ 
Note: See TracChangeset for help on using the changeset viewer.