audioconvert: don't negottiate rate when resample is disabled

This will leave the negotiated rate 0 when parsed and instructs the
stream to follow the graph rate.
This commit is contained in:
Wim Taymans 2023-06-23 10:35:47 +02:00
parent 4cc22d60d2
commit 0156d63109
2 changed files with 18 additions and 6 deletions

View file

@ -519,6 +519,8 @@ int format_parse_param(const struct spa_pod *param, bool collect,
if (ss != NULL)
*ss = *def_ss;
} else {
if (info.info.raw.rate == 0)
info.info.raw.rate = 48000;
if (info.info.raw.format == 0 ||
info.info.raw.rate == 0 ||
info.info.raw.channels == 0 ||