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.
This commit is contained in:
Wim Taymans 2022-08-30 16:00:00 +02:00
parent 5ae1c03d77
commit 24f6225c5d

View file

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