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:
Wim Taymans 2021-06-14 12:16:49 +02:00
parent 7ba7179eee
commit 519bd342be
2 changed files with 4 additions and 0 deletions

View file

@ -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;

View file

@ -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;