[pulseaudio-commits] src/tests
Arun Raghavan
arun at kemper.freedesktop.org
Tue Oct 30 08:05:55 PDT 2012
src/tests/cpu-test.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit 96fa87086dc5624eb4646ba126152c2e9e5b1257
Author: Arun Raghavan <arun.raghavan at collabora.co.uk>
Date: Tue Oct 30 20:28:24 2012 +0530
tests: Minor alignment adjustment fix for cpu-test
diff --git a/src/tests/cpu-test.c b/src/tests/cpu-test.c
index 8f6f936..8e196e5 100644
--- a/src/tests/cpu-test.c
+++ b/src/tests/cpu-test.c
@@ -83,7 +83,8 @@ static void run_volume_test(pa_do_volume_func_t func, pa_do_volume_func_t orig_f
samples_ref = s_ref + (8 - align);
samples_orig = s_orig + (8 - align);
nsamples = SAMPLES - (8 - align);
- nsamples += nsamples % channels;
+ if (nsamples % channels)
+ nsamples += nsamples % channels;
size = nsamples * sizeof(*samples);
pa_random(samples, size);
More information about the pulseaudio-commits
mailing list