audiomixer: don't mix when no input

Give the app a chance to provide some input when there is nothing to mix
anymore in process_output.
alsa: fix buffer size
This commit is contained in:
Wim Taymans 2017-04-19 13:06:03 +02:00
parent e864836300
commit 90ea120d3c
2 changed files with 4 additions and 4 deletions

View file

@ -780,7 +780,7 @@ spa_audiomixer_node_process_output (SpaNode *node)
if (port->io == NULL || port->n_buffers == 0)
continue;
if (port->queued_bytes > 0 && port->queued_bytes < min_queued)
if (port->queued_bytes < min_queued)
min_queued = port->queued_bytes;
}
if (min_queued != SIZE_MAX && min_queued > 0) {