From 110d8572c0b5438ad6d5467298880eaf2ea916e0 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 28 Jan 2025 12:39:31 +0100 Subject: [PATCH] audioadapter: fix EnumPortConfig without converter If we don't have a converter, we always work in passthrough mode and EnumPortConfig can use the same code as PortConfig in all cases. See !2265 --- spa/plugins/audioconvert/audioadapter.c | 1 - 1 file changed, 1 deletion(-) diff --git a/spa/plugins/audioconvert/audioadapter.c b/spa/plugins/audioconvert/audioadapter.c index 1c79c149d..6e393bd0d 100644 --- a/spa/plugins/audioconvert/audioadapter.c +++ b/spa/plugins/audioconvert/audioadapter.c @@ -214,7 +214,6 @@ next: switch (id) { case SPA_PARAM_EnumPortConfig: - return convert_enum_port_config(this, seq, id, start, num, filter, &b.b); case SPA_PARAM_PortConfig: if (this->mode == SPA_PARAM_PORT_CONFIG_MODE_passthrough) { switch (result.index) {