node-driver: Log when we resync

This commit is contained in:
Arun Raghavan 2024-01-29 12:08:15 -05:00
parent bbb83b97c5
commit 3958bed5c3

View file

@ -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;