audioconvert: in merge mode, flush input

In merge mode we handle 1 quantum and then flush the input and
output. Fixes a case were samples were cut at the start.
This commit is contained in:
Wim Taymans 2022-06-22 15:48:09 +02:00
parent 5363bdcfcb
commit a427e602bd

View file

@ -2288,7 +2288,7 @@ static int impl_node_process(void *object)
* always output the resulting data */ * always output the resulting data */
n_samples = SPA_MIN(n_samples, quant_samples); n_samples = SPA_MIN(n_samples, quant_samples);
max_out = this->quantum_limit; max_out = this->quantum_limit;
flush_out = true; flush_out = flush_in = true;
} }
dir = &this->dir[SPA_DIRECTION_OUTPUT]; dir = &this->dir[SPA_DIRECTION_OUTPUT];