Changeset 2672
- Timestamp:
- May 1, 2009 3:13:01 PM (16 years ago)
- Location:
- pjproject/trunk/pjmedia
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/build/Jbtest.dat
r2579 r2672 185 185 !burst 1 186 186 !discard 0 187 !lost 3188 !empty 1187 !lost 7 188 !empty 3 189 189 !delay 3 190 190 PGPGPGPGPGPGPGPGPGPG PGPGPGPGPGPGPGPGPGPG … … 193 193 # Normal 194 194 PGPGPGPGPGPGPGPGPGPG PGPGPGPGPGPGPGPGPGPG 195 # More losts 196 PLPGGGPPPGGGPLPGGGPG PLPGGGPPPGGGPLPGGGPG 197 # Normal 198 PGPGPGPGPGPGPGPGPGPG PGPGPGPGPGPGPGPGPGPG 195 199 . 196 200 -
pjproject/trunk/pjmedia/src/pjmedia/jbuf.c
r2662 r2672 316 316 assert(frame_size <= framelist->frame_size); 317 317 318 /* the first ever frame since inited/resetted. */319 if (framelist->origin == INVALID_OFFSET)320 framelist->origin = index;321 322 318 /* too late or duplicated or sequence restart */ 323 319 if (index < framelist->origin) { … … 331 327 } 332 328 329 /* if jbuf is empty, just reset the origin */ 330 if (framelist->size == 0) { 331 framelist->origin = index; 332 } 333 333 334 /* get distance of this frame to the first frame in the buffer */ 334 335 distance = index - framelist->origin; … … 342 343 distance = 0; 343 344 } else { 344 if (framelist->size == 0) { 345 /* if jbuf is empty, process the frame */ 346 framelist->origin = index; 347 distance = 0; 348 } else { 349 /* otherwise, reject the frame */ 350 return PJ_ETOOMANY; 351 } 345 /* otherwise, reject the frame */ 346 return PJ_ETOOMANY; 352 347 } 353 348 }
Note: See TracChangeset
for help on using the changeset viewer.