mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
resample: use a 0 sized buffer to drain
This commit is contained in:
parent
7febf7ea25
commit
fdb5911e86
2 changed files with 18 additions and 1 deletions
|
|
@ -780,6 +780,12 @@ static int impl_node_process(void *object)
|
|||
flush_out = true;
|
||||
break;
|
||||
}
|
||||
if (size == 0) {
|
||||
size = sb->datas[0].maxsize;
|
||||
memset(sb->datas[0].data, 0, size);
|
||||
inport->offset = 0;
|
||||
flush_in = true;
|
||||
}
|
||||
|
||||
if (this->io_rate_match) {
|
||||
if (SPA_FLAG_IS_SET(this->io_rate_match->flags, SPA_IO_RATE_MATCH_FLAG_ACTIVE)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue