mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-08 13:29:59 -05:00
make the memchunk writeable before silencing it
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1791 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
841fcb4557
commit
a77158e67a
1 changed files with 1 additions and 0 deletions
|
|
@ -82,6 +82,7 @@ void pa_silence_memchunk(pa_memchunk *c, const pa_sample_spec *spec) {
|
|||
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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue