From 974ab5348ee2f7aacebdb1c2bbba1863099dedff Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Fri, 24 Jun 2022 12:43:52 +0200 Subject: [PATCH] audioconvert: reset props before parsing config Or else we undo all settings from the config params. --- spa/plugins/audioconvert/audioconvert.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spa/plugins/audioconvert/audioconvert.c b/spa/plugins/audioconvert/audioconvert.c index 192d05872..f713baece 100644 --- a/spa/plugins/audioconvert/audioconvert.c +++ b/spa/plugins/audioconvert/audioconvert.c @@ -2614,6 +2614,8 @@ impl_init(const struct spa_handle_factory *factory, this->max_align = SPA_MIN(MAX_ALIGN, spa_cpu_get_max_align(this->cpu)); } + props_reset(&this->props); + this->mix.options = CHANNELMIX_OPTION_UPMIX; this->mix.upmix = CHANNELMIX_UPMIX_PSD; this->mix.log = this->log; @@ -2666,7 +2668,6 @@ impl_init(const struct spa_handle_factory *factory, this->volume.cpu_flags = this->cpu_flags; volume_init(&this->volume); - props_reset(&this->props); this->rate_scale = 1.0;