mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-06 13:30:01 -05:00
merger: follow the position duration if we can
This commit is contained in:
parent
8825a21e86
commit
c10feda5ce
1 changed files with 5 additions and 1 deletions
|
|
@ -977,6 +977,10 @@ static int impl_node_process(void *object)
|
||||||
dd = &dbuf->buf->datas[0];
|
dd = &dbuf->buf->datas[0];
|
||||||
|
|
||||||
maxsize = dd->maxsize;
|
maxsize = dd->maxsize;
|
||||||
|
|
||||||
|
if (SPA_LIKELY(this->io_position))
|
||||||
|
n_samples = this->io_position->clock.duration;
|
||||||
|
else
|
||||||
n_samples = maxsize / outport->stride;
|
n_samples = maxsize / outport->stride;
|
||||||
|
|
||||||
src_datas = alloca(sizeof(void*) * this->port_count);
|
src_datas = alloca(sizeof(void*) * this->port_count);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue