Changeset 1847
- Timestamp:
- 03/05/2008 11:41:42 AM (3 years ago)
- Files:
-
- 1 modified
-
pjproject/trunk/pjmedia/src/pjmedia/delaybuf.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/pjmedia/delaybuf.c
r1844 r1847 281 281 } 282 282 283 shrink_buffer(b, old_max_cnt - new_max_cnt); 283 /* If samples number in the buffer > new_max_cnt, reduce samples first */ 284 if (b->buf_cnt > new_max_cnt) 285 shrink_buffer(b, b->buf_cnt - new_max_cnt); 284 286 285 287 /* Adjust buffer to accomodate the new max_cnt so the samples is secured.
![(please configure the [header_logo] section in trac.ini)](/repos/chrome/site/pj.jpg)