diff options
author | Lu Guanqun <guanqun.lu@intel.com> | 2011-08-15 13:24:51 +0800 |
---|---|---|
committer | Colin Guthrie <colin@mageia.org> | 2011-08-15 09:41:56 +0100 |
commit | 5fe545de233f2a8b8f534a63d3fb6c5b903c977b (patch) | |
tree | 5f71525ec62b052f5a572fd17a20334bd0bdddd8 /src | |
parent | ecbb4b4ef4ac91f4d79e537ea07492634f50037d (diff) |
memblock: use built-in function
Signed-off-by: Lu Guanqun <guanqun.lu@intel.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/pulsecore/memblock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pulsecore/memblock.c b/src/pulsecore/memblock.c index 19be1517..97397317 100644 --- a/src/pulsecore/memblock.c +++ b/src/pulsecore/memblock.c @@ -229,7 +229,7 @@ static pa_memblock *memblock_new_appended(pa_mempool *p, size_t length) { /* If -1 is passed as length we choose the size for the caller. */ if (length == (size_t) -1) - length = p->block_size - PA_ALIGN(sizeof(pa_memblock)); + length = pa_mempool_block_size_max(p); b = pa_xmalloc(PA_ALIGN(sizeof(pa_memblock)) + length); PA_REFCNT_INIT(b); |