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 | |
parent | ecbb4b4ef4ac91f4d79e537ea07492634f50037d (diff) |
memblock: use built-in function
Signed-off-by: Lu Guanqun <guanqun.lu@intel.com>
-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 19be15176..97397317b 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); |