filter-chain: config is only required for bq_raw

Fixes #3161
This commit is contained in:
Wim Taymans 2023-04-16 18:38:52 +02:00
parent 9d7d3599db
commit 381be87e37

View file

@ -287,6 +287,8 @@ static void *bq_instantiate(const struct fc_descriptor * Descriptor,
impl->rate = SampleRate;
impl->b0 = impl->a0 = 1.0f;
impl->type = bq_type_from_name(Descriptor->name);
if (impl->type != BQ_NONE)
return impl;
if (config == NULL)
goto error;