mirror of
https://gitlab.freedesktop.org/pipewire/pipewire
synced 2024-10-15 04:12:29 +00:00
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:
parent
f99fd7d75a
commit
ab1436fb3b
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue