mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04:00
audioconvert: only output when there is something to output
Or else we get 0 sized output buffers.
This commit is contained in:
parent
2ab11d0f6c
commit
68877dcee7
1 changed files with 1 additions and 1 deletions
|
|
@ -3280,7 +3280,7 @@ static int impl_node_process(void *object)
|
||||||
}
|
}
|
||||||
|
|
||||||
dir = &this->dir[SPA_DIRECTION_OUTPUT];
|
dir = &this->dir[SPA_DIRECTION_OUTPUT];
|
||||||
if (SPA_LIKELY(this->out_offset >= max_out || flush_out)) {
|
if (SPA_LIKELY(this->out_offset > 0 && (this->out_offset >= max_out || flush_out))) {
|
||||||
/* queue output buffers */
|
/* queue output buffers */
|
||||||
for (i = 0; i < dir->n_ports; i++) {
|
for (i = 0; i < dir->n_ports; i++) {
|
||||||
port = GET_OUT_PORT(this, i);
|
port = GET_OUT_PORT(this, i);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue