From 24f6225c5daf67333ff2d2de57ed9a0896f8ad4b Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 30 Aug 2022 16:00:00 +0200 Subject: [PATCH] audioconvert: don't emit changed events for rate changes Rate changes can happen very often when a stream is doing rate control, so don't emit the changes every time. --- spa/plugins/audioconvert/audioconvert.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/spa/plugins/audioconvert/audioconvert.c b/spa/plugins/audioconvert/audioconvert.c index d41b17fe3..7873efdb0 100644 --- a/spa/plugins/audioconvert/audioconvert.c +++ b/spa/plugins/audioconvert/audioconvert.c @@ -909,8 +909,7 @@ static int apply_props(struct impl *this, const struct spa_pod *param) } break; case SPA_PROP_rate: - if (spa_pod_get_double(&prop->value, &p->rate) == 0) - changed++; + spa_pod_get_double(&prop->value, &p->rate); break; case SPA_PROP_params: changed += parse_prop_params(this, &prop->value);