client-stream: reset format on adapter

This commit is contained in:
Wim Taymans 2018-05-17 17:38:13 +02:00
parent bb632859ea
commit 1bff5afe05

View file

@ -544,6 +544,11 @@ impl_node_port_set_param(struct spa_node *node,
if (id == t->param.idFormat && impl->use_converter) { if (id == t->param.idFormat && impl->use_converter) {
if (param == NULL) { if (param == NULL) {
if ((res = spa_node_port_set_param(impl->adapter,
SPA_DIRECTION_REVERSE(direction), 0, id,
0, NULL)) < 0)
return res;
impl->n_buffers = 0;
} }
else { else {
if (port_id == 0) if (port_id == 0)