remote: clear buffers when format changes

This commit is contained in:
Wim Taymans 2018-05-17 17:31:01 +02:00
parent 6450c64542
commit bb632859ea

View file

@ -946,12 +946,10 @@ client_node_port_set_param(void *object,
} }
if (id == t->param.idFormat) { if (id == t->param.idFormat) {
if (param == NULL) { struct mix *mix;
struct mix *mix; spa_list_for_each(mix, &data->mix[direction], link) {
spa_list_for_each(mix, &data->mix[direction], link) { if (mix->port->port_id == port_id)
if (mix->port->port_id == port_id) clear_buffers(data, mix);
clear_buffers(data, mix);
}
} }
} }