From ebccd89ae1015099813f95303ded8ecd4f89073a Mon Sep 17 00:00:00 2001 From: Pauli Virtanen Date: Sat, 28 May 2022 13:50:12 +0300 Subject: [PATCH] bluez5: a2dp-sink: update follower current time Update follower current time in process, since it is otherwise not updated. Fixes bitpool control as follower. --- spa/plugins/bluez5/a2dp-sink.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/spa/plugins/bluez5/a2dp-sink.c b/spa/plugins/bluez5/a2dp-sink.c index 4460695bf..3d4dfc1f0 100644 --- a/spa/plugins/bluez5/a2dp-sink.c +++ b/spa/plugins/bluez5/a2dp-sink.c @@ -1478,6 +1478,11 @@ static int impl_node_process(void *object) io->status = SPA_STATUS_OK; } if (!spa_list_is_empty(&port->ready)) { + if (this->following) { + struct timespec now; + spa_system_clock_gettime(this->data_system, CLOCK_MONOTONIC, &now); + this->current_time = SPA_TIMESPEC_TO_NSEC(&now); + } if (this->need_flush) reset_buffer(this); flush_data(this, this->current_time);