test: clear resample struct before use

This commit is contained in:
Wim Taymans 2019-06-07 17:25:28 +02:00
parent 497a8364c5
commit 8cda0dd962

View file

@ -64,6 +64,7 @@ static void test_native(void)
{
struct resample r;
spa_zero(r);
r.channels = 1;
r.i_rate = 44100;
r.o_rate = 44100;
@ -71,6 +72,7 @@ static void test_native(void)
feed_1(&r);
spa_zero(r);
r.channels = 1;
r.i_rate = 44100;
r.o_rate = 48000;