audioconvert: also set io_position on channelmix

Also make the channelmix node aware of the io_position so that
is can use this later to get the default rate.
This commit is contained in:
Wim Taymans 2021-06-14 12:11:10 +02:00
parent c726dd887c
commit ed80d72d51
2 changed files with 17 additions and 1 deletions

View file

@ -557,6 +557,7 @@ static int impl_node_set_io(void *object, uint32_t id, void *data, size_t size)
switch (id) {
case SPA_IO_Position:
res = spa_node_set_io(this->resample, id, data, size);
res = spa_node_set_io(this->channelmix, id, data, size);
res = spa_node_set_io(this->fmt[0], id, data, size);
res = spa_node_set_io(this->fmt[1], id, data, size);
break;