audioconvert: always push out data when the out_offset reaches max_out

No matter if the input data (n_samples) is > 0, the code here should
flush out existing data if the output buffer is full
This commit is contained in:
George Kiagiadakis 2024-11-04 20:36:12 +02:00
parent d5e2a0df6c
commit 726234c82f

View file

@ -3280,7 +3280,7 @@ static int impl_node_process(void *object)
}
dir = &this->dir[SPA_DIRECTION_OUTPUT];
if (SPA_LIKELY(n_samples > 0 && (this->out_offset >= max_out || flush_out))) {
if (SPA_LIKELY(this->out_offset >= max_out || flush_out)) {
/* queue output buffers */
for (i = 0; i < dir->n_ports; i++) {
port = GET_OUT_PORT(this, i);