audioconvert: consume right amount of input samples

When we are not using the resampler, we consume the same amount of
input samples as output samples.

Fixes #2519
This commit is contained in:
Wim Taymans 2022-07-08 09:23:31 +02:00
parent df40c9bf6a
commit 7b01068837

View file

@ -2542,8 +2542,8 @@ static int impl_node_process(void *object)
this->in_offset += in_len;
n_samples = out_len;
} else {
this->in_offset += n_samples;
n_samples = SPA_MIN(n_samples, n_out);
this->in_offset += n_samples;
}
this->out_offset += n_samples;