Changeset 1802


Ignore:
Timestamp:
Feb 18, 2008 12:16:23 PM (11 years ago)
Author:
bennylp
Message:

Fixed build error if SRTP is disabled in compile time (thanks Helmut Wolf)

Location:
pjproject/trunk/pjsip-apps/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip-apps/src/pjsua/pjsua_app.c

    r1758 r1802  
    13251325 
    13261326    /* SRTP */ 
     1327#if PJMEDIA_HAS_SRTP 
    13271328    if (app_config.cfg.use_srtp != PJSUA_DEFAULT_USE_SRTP) { 
    13281329        pj_ansi_sprintf(line, "--use-srtp %d\n", 
     
    13371338        pj_strcat2(&cfg, line); 
    13381339    } 
    1339  
     1340#endif 
    13401341 
    13411342    /* Media */ 
  • pjproject/trunk/pjsip-apps/src/samples/pcaputil.c

    r1769 r1802  
    155155 
    156156        /* Decrypt SRTP */ 
     157#if PJMEDIA_HAS_SRTP 
    157158        if (app.srtp) { 
    158159            int len = sz; 
     
    178179            } 
    179180        } 
     181#endif 
    180182 
    181183        /* Update RTP session */ 
     
    247249 
    248250    /* Create SRTP transport is needed */ 
     251#if PJMEDIA_HAS_SRTP 
    249252    if (srtp_crypto->slen) { 
    250253        pjmedia_srtp_crypto crypto; 
     
    256259        T( pjmedia_transport_srtp_start(app.srtp, &crypto, &crypto) ); 
    257260    } 
     261#else 
     262    PJ_UNUSED_ARG(srtp_crypto); 
     263    PJ_UNUSED_ARG(srtp_key); 
     264#endif 
    258265 
    259266    /* Read first packet */ 
Note: See TracChangeset for help on using the changeset viewer.