Changeset 1847
- Timestamp:
- Mar 5, 2008 5:41:42 PM (17 years ago)
- File:
-
- 1 edited
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.
Note: See TracChangeset
for help on using the changeset viewer.