mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-28 05:40:21 -04:00
memblock: use built-in function
Signed-off-by: Lu Guanqun <guanqun.lu@intel.com>
This commit is contained in:
parent
ecbb4b4ef4
commit
5fe545de23
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue