From eb6481efb3c3f4288c2e0156940ee10434577a11 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Thu, 23 May 2019 10:27:54 +0200 Subject: [PATCH] fmtconvert: also return all formats when not negotiated Also return all possible formats if the other port was not negotiated. --- spa/plugins/audioconvert/fmtconvert.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spa/plugins/audioconvert/fmtconvert.c b/spa/plugins/audioconvert/fmtconvert.c index df4ffb6ba..599e20adf 100644 --- a/spa/plugins/audioconvert/fmtconvert.c +++ b/spa/plugins/audioconvert/fmtconvert.c @@ -340,7 +340,8 @@ static int port_enum_formats(struct spa_node *node, else info.info.raw.format = SPA_AUDIO_FORMAT_S16; - if (info.info.raw.format == SPA_AUDIO_FORMAT_F32P || + if (!other->have_format || + info.info.raw.format == SPA_AUDIO_FORMAT_F32P || info.info.raw.format == SPA_AUDIO_FORMAT_F32) { spa_pod_builder_add(builder, SPA_FORMAT_AUDIO_format, SPA_POD_CHOICE_ENUM_Id(18,