audioconvert: apply ouput range to resampler as well

This commit is contained in:
Wim Taymans 2018-06-15 12:45:04 +02:00
parent 4ac21aea53
commit 18f0194008
2 changed files with 10 additions and 0 deletions

View file

@ -713,10 +713,15 @@ impl_node_port_set_io(struct spa_node *node,
uint32_t id, void *data, size_t size)
{
struct impl *this;
struct type *t;
spa_return_val_if_fail(node != NULL, -EINVAL);
this = SPA_CONTAINER_OF(node, struct impl, node);
t = &this->type;
if (id == t->io.ControlRange)
spa_node_port_set_io(this->resample, direction, 0, id, data, size);
return spa_node_port_set_io(this->fmt[direction], direction, port_id, id, data, size);
}