diff options
author | Pierre Ossman <ossman@cendio.se> | 2006-08-22 07:23:47 +0000 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2006-08-22 07:23:47 +0000 |
commit | 1c320fe0b76995c50cfc4b54bfe90e859accdfc4 (patch) | |
tree | 02ef9ac6f3cda28f8d70c2482e88ec7fa98a245f | |
parent | 6e3d8af52078db439f9cacece690dfe96d353c42 (diff) |
Fix calls to pa_memblock_new().
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1310 fefdeb5f-60dc-0310-8127-8f9354f1896f
-rw-r--r-- | src/modules/module-solaris.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/module-solaris.c b/src/modules/module-solaris.c index 06de7d369..d198ee611 100644 --- a/src/modules/module-solaris.c +++ b/src/modules/module-solaris.c @@ -202,7 +202,7 @@ static void do_read(struct userdata *u) { err = ioctl(u->fd, I_NREAD, &l); assert(err >= 0); - memchunk.memblock = pa_memblock_new(l, u->core->memblock_stat); + memchunk.memblock = pa_memblock_new(u->core->mempool, l); assert(memchunk.memblock); if ((r = pa_iochannel_read(u->io, memchunk.memblock->data, memchunk.memblock->length)) < 0) { pa_memblock_unref(memchunk.memblock); @@ -589,7 +589,7 @@ int pa__init(pa_core *c, pa_module*m) { u->frame_size = pa_frame_size(&ss); u->buffer_size = buffer_size; - u->silence.memblock = pa_memblock_new(u->silence.length = CHUNK_SIZE, u->core->memblock_stat); + u->silence.memblock = pa_memblock_new(u->core->mempool, u->silence.length = CHUNK_SIZE); assert(u->silence.memblock); pa_silence_memblock(u->silence.memblock, &ss); u->silence.index = 0; |