[pulseaudio-discuss] [PATCH] tests: Resampler output memchunk may be reset (zero)
Tanu Kaskinen
tanu.kaskinen at linux.intel.com
Tue Oct 29 17:34:11 CET 2013
On Tue, 2013-07-16 at 17:09 +0200, Peter Meerwald wrote:
> 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);
Thanks, applied.
--
Tanu
More information about the pulseaudio-discuss
mailing list