]> code.delx.au - pulseaudio/commit
resampler: Extend fit_buf() helper to copy leftover data to new buffer
authorPeter Meerwald <p.meerwald@bct-electronic.com>
Mon, 2 Dec 2013 16:26:59 +0000 (17:26 +0100)
committerTanu Kaskinen <tanu.kaskinen@linux.intel.com>
Tue, 28 Jan 2014 20:41:16 +0000 (22:41 +0200)
commit5ad310f4f693994a1628fd3b746d4519aae911c8
tree8dc9ce4c6f087ea6cb774731a1305e712ab465bb
parenteab0544f230ae4d89d139a9a7af1a7281c40689a
resampler: Extend fit_buf() helper to copy leftover data to new buffer

the patch changes the interface of the (internal) fit_buf() function:
fit_buf() manages the memblock of the buf chunk, it reallocates the memblock
if the requested number of bytes ('len') if larger than the memblock's size ('size')
and optionally preserves 'copy' bytes

the code should be in line with the comment now

Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
src/pulsecore/resampler.c