[pulseaudio-commits] r1791 - /branches/lennart/src/pulsecore/sample-util.c

svnmailer-noreply at 0pointer.de svnmailer-noreply at 0pointer.de
Mon Sep 10 13:56:14 PDT 2007


Author: lennart
Date: Mon Sep 10 22:56:13 2007
New Revision: 1791

URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=1791&root=pulseaudio&view=rev
Log:
make the memchunk writeable before silencing it

Modified:
    branches/lennart/src/pulsecore/sample-util.c

Modified: branches/lennart/src/pulsecore/sample-util.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/branches/lennart/src/pulsecore/sample-util.c?rev=1791&root=pulseaudio&r1=1790&r2=1791&view=diff
==============================================================================
--- branches/lennart/src/pulsecore/sample-util.c (original)
+++ branches/lennart/src/pulsecore/sample-util.c Mon Sep 10 22:56:13 2007
@@ -82,6 +82,7 @@
     pa_assert(c->memblock);
     pa_assert(spec);
 
+    pa_memchunk_make_writable(c, 0);
     data = pa_memblock_acquire(c->memblock);
     pa_silence_memory((uint8_t*) data+c->index, c->length, spec);
     pa_memblock_release(c->memblock);




More information about the pulseaudio-commits mailing list