From df4a5efb89bf436cd20b8b39e5de858da9968e10 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 30 Oct 2018 16:32:25 +0000 Subject: [PATCH] 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. --- src/modules/module-client-node/client-node.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/modules/module-client-node/client-node.c b/src/modules/module-client-node/client-node.c index 13c22b8f6..b941b2a0c 100644 --- a/src/modules/module-client-node/client-node.c +++ b/src/modules/module-client-node/client-node.c @@ -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));