mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
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:
parent
4cc22d60d2
commit
0156d63109
2 changed files with 18 additions and 6 deletions
|
|
@ -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 ||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue