From 621f6ca10be157e7d11142c8109c36dc0ff4ed39 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Fri, 14 Feb 2020 20:22:55 +0100 Subject: [PATCH] resample: reset props first, then override --- spa/plugins/audioconvert/resample.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spa/plugins/audioconvert/resample.c b/spa/plugins/audioconvert/resample.c index f67e09740..c83da3119 100644 --- a/spa/plugins/audioconvert/resample.c +++ b/spa/plugins/audioconvert/resample.c @@ -922,6 +922,8 @@ impl_init(const struct spa_handle_factory *factory, if (this->cpu) this->resample.cpu_flags = spa_cpu_get_flags(this->cpu); + props_reset(&this->props); + if (info != NULL) { if ((str = spa_dict_lookup(info, "resample.quality")) != NULL) this->props.quality = atoi(str); @@ -981,8 +983,6 @@ impl_init(const struct spa_handle_factory *factory, port->info.n_params = 5; spa_list_init(&port->queue); - props_reset(&this->props); - return 0; }