From 1f40695b694f6e74f01f6416e37cdf95311511c1 Mon Sep 17 00:00:00 2001 From: Arun Raghavan Date: Mon, 29 Jan 2024 12:08:15 -0500 Subject: [PATCH] node-driver: Log when we resync --- spa/plugins/support/node-driver.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spa/plugins/support/node-driver.c b/spa/plugins/support/node-driver.c index 7029882d6..df9b9cfdb 100644 --- a/spa/plugins/support/node-driver.c +++ b/spa/plugins/support/node-driver.c @@ -305,6 +305,8 @@ static void on_timeout(struct spa_source *source) err = (double)position - (double)current_position; if (fabs(err) > this->max_error) { if (fabs(err) > this->max_resync) { + spa_log_warn(this->log, "err %f > max_resync %f, resetting", + err, this->max_resync); spa_dll_set_bw(&this->dll, SPA_DLL_BW_MIN, duration, rate); position = current_position; err = 0.0;