mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-07 13:30:09 -05:00
audioconvert: check return value of pod parse
This commit is contained in:
parent
98a214891d
commit
689184a5e7
1 changed files with 2 additions and 2 deletions
|
|
@ -919,8 +919,8 @@ static int apply_props(struct impl *this, const struct spa_pod *param)
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case SPA_PROP_rate:
|
case SPA_PROP_rate:
|
||||||
spa_pod_get_double(&prop->value, &p->rate);
|
if (spa_pod_get_double(&prop->value, &p->rate) == 0 &&
|
||||||
if (!this->rate_adjust && p->rate != 1.0) {
|
!this->rate_adjust && p->rate != 1.0) {
|
||||||
this->rate_adjust = true;
|
this->rate_adjust = true;
|
||||||
spa_log_info(this->log, "%p: activating adaptive resampler",
|
spa_log_info(this->log, "%p: activating adaptive resampler",
|
||||||
this);
|
this);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue