memblock: Add pa_memblock_acquire_chunk().

Besides making the code a bit cleaner, this also gets rid of
a few "cast increases required alignment of target type"
warnings.
This commit is contained in:
Tanu Kaskinen 2012-08-17 18:09:34 +03:00 committed by Tanu Kaskinen
parent 33e5802df2
commit 3d6092bb0f
16 changed files with 52 additions and 40 deletions

View file

@ -450,7 +450,7 @@ START_TEST (mix_test) {
k.length = i.length;
k.index = 0;
ptr = (uint8_t*) pa_memblock_acquire(k.memblock) + k.index;
ptr = pa_memblock_acquire_chunk(&k);
pa_mix(m, 2, ptr, k.length, &a, NULL, FALSE);
pa_memblock_release(k.memblock);