mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
audioconvert: don't use samplerate to negotiate
The merger and splitter use the samplerate from the _io_position for the DSP formats so set the samplerate to 0 to make sure we don't use it to negotiate a format with the peer.
This commit is contained in:
parent
7ba7179eee
commit
519bd342be
2 changed files with 4 additions and 0 deletions
|
|
@ -542,6 +542,8 @@ static int impl_node_set_param(void *object, uint32_t id, uint32_t flags,
|
|||
if (spa_format_audio_raw_parse(format, &info.info.raw) < 0)
|
||||
return -EINVAL;
|
||||
|
||||
info.info.raw.rate = 0;
|
||||
|
||||
if (this->have_profile && memcmp(&this->format, &info, sizeof(info)) == 0)
|
||||
return 0;
|
||||
|
||||
|
|
|
|||
|
|
@ -325,6 +325,8 @@ static int impl_node_set_param(void *object, uint32_t id, uint32_t flags,
|
|||
if (spa_format_audio_raw_parse(format, &info.info.raw) < 0)
|
||||
return -EINVAL;
|
||||
|
||||
info.info.raw.rate = 0;
|
||||
|
||||
if (this->have_profile && memcmp(&this->format, &info, sizeof(info)) == 0)
|
||||
return 0;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue