- Timestamp:
- Jun 20, 2007 4:34:56 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/pjmedia/clock_thread.c
r1266 r1378 28 28 * Implementation of media clock with OS thread. 29 29 */ 30 30 #define MAX_JUMP 500 31 31 32 32 struct pjmedia_clock … … 185 185 186 186 /* Calculate next tick */ 187 if (clock->next_tick.u64+MAX_JUMP < now.u64) { 188 /* Timestamp has made large jump, adjust next_tick */ 189 clock->next_tick.u64 = now.u64; 190 } 187 191 clock->next_tick.u64 += clock->interval.u64; 188 192 … … 230 234 231 235 /* Calculate next tick */ 236 if (clock->next_tick.u64+MAX_JUMP < now.u64) { 237 /* Timestamp has made large jump, adjust next_tick */ 238 clock->next_tick.u64 = now.u64; 239 } 232 240 clock->next_tick.u64 += clock->interval.u64; 233 241
Note: See TracChangeset
for help on using the changeset viewer.