impl-core: store hello version in core resource

So that we can later get the client core version from the resource.
This commit is contained in:
Wim Taymans 2023-03-21 17:20:18 +01:00
parent aae770f18b
commit 59cd5670d7

View file

@ -172,6 +172,8 @@ static int core_hello(void *object, uint32_t version)
pw_log_debug("%p: hello %d from resource %p", context, version, resource);
pw_map_for_each(&client->objects, destroy_resource, client);
resource->version = version;
pw_mempool_clear(client->pool);
this->info.change_mask = PW_CORE_CHANGE_MASK_ALL;