- Timestamp:
- Sep 19, 2006 9:29:19 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/pjmedia/sdp.c
r609 r730 72 72 static void init_sdp_parser(void) 73 73 { 74 if (is_initialized == 0) { 75 is_initialized = 1; 76 if (is_initialized != 1) { 77 return; 78 } 79 } 80 74 if (is_initialized != 0) 75 return; 76 77 pj_enter_critical_section(); 78 79 if (is_initialized != 0) { 80 pj_leave_critical_section(); 81 return; 82 } 83 81 84 pj_cis_buf_init(&cis_buf); 82 85 … … 88 91 pj_cis_init(&cis_buf, &cs_digit); 89 92 pj_cis_add_num(&cs_digit); 93 94 is_initialized = 1; 95 pj_leave_critical_section(); 90 96 } 91 97 … … 1115 1121 session = NULL; 1116 1122 1123 pj_assert(ctx.last_error == PJ_SUCCESS); 1117 1124 } 1118 1125 PJ_END;
Note: See TracChangeset
for help on using the changeset viewer.