mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-01 22:58:50 -04:00
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:
parent
df40c9bf6a
commit
7b01068837
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue