From 689184a5e729916b937a6c04781fd8f0fab98114 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Thu, 16 Mar 2023 12:33:08 +0100 Subject: [PATCH] audioconvert: check return value of pod parse --- spa/plugins/audioconvert/audioconvert.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spa/plugins/audioconvert/audioconvert.c b/spa/plugins/audioconvert/audioconvert.c index 99f72d770..af8d44047 100644 --- a/spa/plugins/audioconvert/audioconvert.c +++ b/spa/plugins/audioconvert/audioconvert.c @@ -919,8 +919,8 @@ static int apply_props(struct impl *this, const struct spa_pod *param) } break; case SPA_PROP_rate: - spa_pod_get_double(&prop->value, &p->rate); - if (!this->rate_adjust && p->rate != 1.0) { + if (spa_pod_get_double(&prop->value, &p->rate) == 0 && + !this->rate_adjust && p->rate != 1.0) { this->rate_adjust = true; spa_log_info(this->log, "%p: activating adaptive resampler", this);