impl-node: add backwards compat for old clients

Bump the client-node version to 6. Older clients expect the server to
prepare the activation counters so make a flag to do that.
This commit is contained in:
Wim Taymans 2024-06-04 18:20:51 +02:00
parent 46f71b1cd2
commit 722e646f90
4 changed files with 26 additions and 10 deletions

View file

@ -1799,6 +1799,13 @@ struct pw_impl_client_node *pw_impl_client_node_new(struct pw_resource *resource
this->node->remote = true;
this->flags = 0;
if (resource->version < 5) {
pw_log_warn("using server side driver for old client version %d", resource->version);
}
if (resource->version < 6) {
this->node->server_prepare = true;
pw_log_warn("using server side prepare for old client version %d", resource->version);
}
pw_resource_add_listener(this->resource,
&impl->resource_listener,