[PATCH] tests: Resampler output memchunk may be reset (zero)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Linux Audio Users]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux