From a91d129698f439bcbec17cc4ae06b29ddcb92e94 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Mon, 19 Oct 2020 15:35:45 +0200 Subject: [PATCH] a2dp-sink: fix timing --- spa/plugins/bluez5/a2dp-sink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spa/plugins/bluez5/a2dp-sink.c b/spa/plugins/bluez5/a2dp-sink.c index dcf0dcc01..1955daf96 100644 --- a/spa/plugins/bluez5/a2dp-sink.c +++ b/spa/plugins/bluez5/a2dp-sink.c @@ -578,7 +578,7 @@ static void a2dp_on_timeout(struct spa_source *source) if (SPA_LIKELY(this->clock)) { this->clock->nsec = now_time; this->clock->position += duration; - this->clock->position = duration; + this->clock->duration = duration; this->clock->delay = 0; this->clock->rate_diff = 1.0f; this->clock->next_nsec = this->next_time;