audioconvert: improve EMPTY flag on output buffers

Only set the EMPTY flag on output buffers if we don't have any
previously queued samples and the input is EMPTY.

Fixes #3365
This commit is contained in:
Wim Taymans 2023-07-19 21:39:25 +02:00
parent f99fd7d75a
commit ab1436fb3b

View file

@ -2609,7 +2609,8 @@ static int impl_node_process(void *object)
struct dir *dir;
int tmp = 0, res = 0;
bool in_passthrough, mix_passthrough, resample_passthrough, out_passthrough;
bool in_avail = false, flush_in = false, flush_out = false, draining = false, in_empty = true;
bool in_avail = false, flush_in = false, flush_out = false;
bool draining = false, in_empty = this->out_offset == 0;
struct spa_io_buffers *io, *ctrlio = NULL;
const struct spa_pod_sequence *ctrl = NULL;