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,14 +946,12 @@ 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);
} }
} }
}
res = pw_port_set_param(port, id, flags, param); res = pw_port_set_param(port, id, flags, param);
if (res < 0) if (res < 0)