projects
/
profile
/
ivi
/
pulseaudio-panda.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ecbb4b4
)
memblock: use built-in function
author
Lu Guanqun
<guanqun.lu@intel.com>
Mon, 15 Aug 2011 05:24:51 +0000
(13:24 +0800)
committer
Colin Guthrie
<colin@mageia.org>
Mon, 15 Aug 2011 08:41:56 +0000
(09:41 +0100)
Signed-off-by: Lu Guanqun <guanqun.lu@intel.com>
src/pulsecore/memblock.c
patch
|
blob
|
history
diff --git
a/src/pulsecore/memblock.c
b/src/pulsecore/memblock.c
index
19be151
..
9739731
100644
(file)
--- 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 = p
a_mempool_block_size_max(p
);
b = pa_xmalloc(PA_ALIGN(sizeof(pa_memblock)) + length);
PA_REFCNT_INIT(b);