mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04:00
client-node: don't try to modify the clock
The clock position should match the buffer timestamps and we should not try to change it. If a client wants to align stream it will have to do this itself.
This commit is contained in:
parent
ee72023629
commit
df4a5efb89
1 changed files with 0 additions and 6 deletions
|
|
@ -167,7 +167,6 @@ struct impl {
|
|||
int other_fds[2];
|
||||
|
||||
struct spa_io_position *position;
|
||||
uint64_t start;
|
||||
};
|
||||
|
||||
static int
|
||||
|
|
@ -875,7 +874,6 @@ do_port_use_buffers(struct impl *impl,
|
|||
}
|
||||
}
|
||||
}
|
||||
impl->start = -1;
|
||||
|
||||
pw_client_node_resource_port_use_buffers(this->resource,
|
||||
this->seq,
|
||||
|
|
@ -982,11 +980,7 @@ static int impl_node_process(struct spa_node *node)
|
|||
|
||||
q = impl->this.node->driver_node->rt.position;
|
||||
rq = impl->position;
|
||||
|
||||
if (impl->start == -1)
|
||||
impl->start = q->clock.position;
|
||||
*rq = *q;
|
||||
rq->clock.position -= impl->start;
|
||||
|
||||
if (write(this->writefd, &cmd, 8) != 8)
|
||||
spa_log_warn(this->log, "node %p: error %s", this, strerror(errno));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue