[pulseaudio-commits] r1310 - /trunk/src/modules/module-solaris.c

svnmailer-noreply at 0pointer.de svnmailer-noreply at 0pointer.de
Tue Aug 22 00:23:47 PDT 2006


Author: ossman
Date: Tue Aug 22 09:23:47 2006
New Revision: 1310

URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=1310&root=pulseaudio&view=rev
Log:
Fix calls to pa_memblock_new().

Modified:
    trunk/src/modules/module-solaris.c

Modified: trunk/src/modules/module-solaris.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/modules/module-solaris.c?rev=1310&root=pulseaudio&r1=1309&r2=1310&view=diff
==============================================================================
--- trunk/src/modules/module-solaris.c (original)
+++ trunk/src/modules/module-solaris.c Tue Aug 22 09:23:47 2006
@@ -202,7 +202,7 @@
     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 @@
     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;




More information about the pulseaudio-commits mailing list