- Timestamp:
- Jun 7, 2012 4:10:22 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/pjmedia/clock_thread.c
r4106 r4160 166 166 p_clock, PJ_EINVAL); 167 167 168 pool = pj_pool_create(pool->factory, "clock%p", 512, 512, NULL);169 170 168 clock = PJ_POOL_ALLOC_T(pool, pjmedia_clock); 171 clock->pool = p ool;172 169 clock->pool = pj_pool_create(pool->factory, "clock%p", 512, 512, NULL); 170 173 171 status = pj_get_timestamp_freq(&clock->freq); 174 172 if (status != PJ_SUCCESS) … … 226 224 0, 0, &clock->thread); 227 225 if (status != PJ_SUCCESS) { 228 pj_lock_destroy(clock->lock);226 clock->running = PJ_FALSE; 229 227 return status; 230 228 } … … 247 245 if (clock->thread) { 248 246 if (pj_thread_join(clock->thread) == PJ_SUCCESS) { 247 pj_thread_destroy(clock->thread); 249 248 clock->thread = NULL; 249 pj_pool_reset(clock->pool); 250 250 } else { 251 251 clock->quitting = PJ_FALSE;
Note: See TracChangeset
for help on using the changeset viewer.