mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -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
b0de2a9b7a
commit
92c7c56e15
1 changed files with 1 additions and 1 deletions
|
|
@ -3272,7 +3272,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 > 0 && (this->out_offset >= max_out || flush_out))) {
|
||||
/* queue output buffers */
|
||||
for (i = 0; i < dir->n_ports; i++) {
|
||||
port = GET_OUT_PORT(this, i);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue