[pulseaudio-discuss] [PATCH] tests: Resampler output memchunk may be reset (zero)
Peter Meerwald
pmeerw at pmeerw.net
Tue Jul 16 08:09:14 PDT 2013
From: Peter Meerwald <p.meerwald at bct-electronic.com>
Signed-off-by: Peter Meerwald <p.meerwald at bct-electronic.com>
---
src/tests/resampler-test.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
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);
--
1.7.9.5
More information about the pulseaudio-discuss
mailing list