stream: only install converter io once

This commit is contained in:
Wim Taymans 2018-04-12 09:47:43 +02:00
parent b07c4932cd
commit 96c87c3f7f

View file

@ -213,6 +213,7 @@ static int configure_converter(struct stream *impl)
if (!impl->use_converter)
return -ENOTSUP;
if (impl->io != &impl->conv_io) {
res = spa_node_port_set_io(impl->convert,
impl->direction, 0,
t->io.Buffers,
@ -222,6 +223,7 @@ static int configure_converter(struct stream *impl)
SPA_DIRECTION_REVERSE(impl->direction), 0,
t->io.Buffers,
impl->io, sizeof(struct spa_io_buffers));
}
return 0;
}