mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04: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,7 +977,11 @@ static int impl_node_process(void *object)
|
|||
dd = &dbuf->buf->datas[0];
|
||||
|
||||
maxsize = dd->maxsize;
|
||||
n_samples = maxsize / outport->stride;
|
||||
|
||||
if (SPA_LIKELY(this->io_position))
|
||||
n_samples = this->io_position->clock.duration;
|
||||
else
|
||||
n_samples = maxsize / outport->stride;
|
||||
|
||||
src_datas = alloca(sizeof(void*) * this->port_count);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue