fmtconvert: prefer planar formats when possible

It's easier to convert to and from.
This commit is contained in:
Wim Taymans 2021-02-26 21:14:35 +01:00
parent 50437029a3
commit d5d8150e05

View file

@ -378,7 +378,7 @@ static int port_enum_formats(void *object,
if (other->have_format) if (other->have_format)
info = other->format; info = other->format;
else else
info.info.raw.format = SPA_AUDIO_FORMAT_F32; info.info.raw.format = SPA_AUDIO_FORMAT_F32P;
if (!other->have_format || if (!other->have_format ||
info.info.raw.format == SPA_AUDIO_FORMAT_F32P || info.info.raw.format == SPA_AUDIO_FORMAT_F32P ||