Changeset 2891


Ignore:
Timestamp:
Aug 17, 2009 3:17:36 PM (15 years ago)
Author:
bennylp
Message:

Fixed ticket #974: SRTP stops functioning after the library is restarted

File:
1 edited

Legend:

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

    r2885 r2891  
    270270} 
    271271 
     272static pj_bool_t libsrtp_initialized; 
    272273static void pjmedia_srtp_deinit_lib(void); 
    273274 
    274275PJ_DEF(pj_status_t) pjmedia_srtp_init_lib(void) 
    275276{ 
    276     static pj_bool_t initialized = PJ_FALSE; 
    277  
    278     if (initialized == PJ_FALSE) { 
     277    if (libsrtp_initialized == PJ_FALSE) { 
    279278        err_status_t err; 
    280279 
     
    295294        } 
    296295 
    297         initialized = PJ_TRUE; 
     296        libsrtp_initialized = PJ_TRUE; 
    298297    } 
    299298     
     
    310309                   get_libsrtp_errstr(err))); 
    311310    } 
     311 
     312    libsrtp_initialized = PJ_FALSE; 
    312313} 
    313314 
Note: See TracChangeset for help on using the changeset viewer.