mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04:00
fmtconvert: also return all formats when not negotiated
Also return all possible formats if the other port was not negotiated.
This commit is contained in:
parent
78fbcca660
commit
eb6481efb3
1 changed files with 2 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue