mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-03 09:01:54 -05:00
test: clear resample struct before use
This commit is contained in:
parent
497a8364c5
commit
8cda0dd962
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue