resample: use a 0 sized buffer to drain

This commit is contained in:
Wim Taymans 2020-04-06 18:01:38 +02:00
parent 7febf7ea25
commit fdb5911e86
2 changed files with 18 additions and 1 deletions

View file

@ -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)) {