[pulseaudio-commits] src/tests
Tanu Kaskinen
tanuk at kemper.freedesktop.org
Tue Oct 29 17:34:49 CET 2013
src/tests/resampler-test.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit 81f0eb626e7a4f5b0e5fc6f35049c6a9a5fdf8c0
Author: Peter Meerwald <p.meerwald at bct-electronic.com>
Date: Tue Jul 16 17:09:14 2013 +0200
tests: Resampler output memchunk may be reset (zero)
Signed-off-by: Peter Meerwald <p.meerwald at bct-electronic.com>
diff --git a/src/tests/resampler-test.c b/src/tests/resampler-test.c
index fdd263b..566b69f 100644
--- a/src/tests/resampler-test.c
+++ b/src/tests/resampler-test.c
@@ -431,7 +431,8 @@ int main(int argc, char *argv[]) {
i.index = 0;
while (seconds--) {
pa_resampler_run(resampler, &i, &j);
- pa_memblock_unref(j.memblock);
+ if (j.memblock)
+ pa_memblock_unref(j.memblock);
}
pa_log_info("resampling: %llu", (long long unsigned)(pa_rtclock_now() - ts));
pa_memblock_unref(i.memblock);
More information about the pulseaudio-commits
mailing list