stream: change serial when the param changed

Observers check the flags to see if there is a change. The serial
can be used to toggle a change when no other flags change.
This commit is contained in:
Wim Taymans 2020-06-18 12:53:23 +02:00
parent 8ee91bd738
commit 6160711723

View file

@ -185,6 +185,7 @@ static struct param *add_param(struct stream *impl,
idx = get_param_index(id);
if (idx != -1) {
impl->port_info.change_mask |= SPA_PORT_CHANGE_MASK_PARAMS;
impl->params[idx].flags ^= SPA_PARAM_INFO_SERIAL;
impl->params[idx].flags |= SPA_PARAM_INFO_READ;
}