[pulseaudio-commits] r1313 - /trunk/src/modules/module-waveout.c

svnmailer-noreply at 0pointer.de svnmailer-noreply at 0pointer.de
Tue Aug 22 04:37:56 PDT 2006


Author: ossman
Date: Tue Aug 22 13:37:53 2006
New Revision: 1313

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

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

Modified: trunk/src/modules/module-waveout.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/modules/module-waveout.c?rev=1313&root=pulseaudio&r1=1312&r2=1313&view=diff
==============================================================================
--- trunk/src/modules/module-waveout.c (original)
+++ trunk/src/modules/module-waveout.c Tue Aug 22 13:37:53 2006
@@ -217,7 +217,7 @@
             waveInUnprepareHeader(u->hwi, hdr, sizeof(WAVEHDR));
 
         if (hdr->dwBytesRecorded) {
-            memchunk.memblock = pa_memblock_new(hdr->dwBytesRecorded, u->core->memblock_stat);
+            memchunk.memblock = pa_memblock_new(u->core->mempool, hdr->dwBytesRecorded);
             assert(memchunk.memblock);
 
             memcpy((char*)memchunk.memblock->data, hdr->lpData, hdr->dwBytesRecorded);
@@ -564,7 +564,7 @@
     }
     
     u->silence.length = u->fragment_size;
-    u->silence.memblock = pa_memblock_new(u->silence.length, u->core->memblock_stat);
+    u->silence.memblock = pa_memblock_new(u->core->mem, u->silence.length);
     assert(u->silence.memblock);
     pa_silence_memblock(u->silence.memblock, &ss);
     u->silence.index = 0;




More information about the pulseaudio-commits mailing list