impl: use _ALL change_mask for everything

Instead of ~0
This commit is contained in:
Wim Taymans 2020-10-22 10:59:04 +02:00
parent 723ebcf438
commit 5e325f636c
4 changed files with 4 additions and 4 deletions

View file

@ -275,7 +275,7 @@ global_bind(void *_data, struct pw_impl_client *client, uint32_t permissions,
if (resource->id == 1)
client->client_resource = resource;
this->info.change_mask = ~0;
this->info.change_mask = PW_CLIENT_CHANGE_MASK_ALL;
pw_client_resource_info(resource, &this->info);
this->info.change_mask = 0;

View file

@ -116,7 +116,7 @@ global_bind(void *_data, struct pw_impl_client *client, uint32_t permissions,
pw_log_debug(NAME" %p: bound to %d", this, resource->id);
pw_global_add_resource(global, resource);
this->info.change_mask = ~0;
this->info.change_mask = PW_FACTORY_CHANGE_MASK_ALL;
pw_factory_resource_info(resource, &this->info);
this->info.change_mask = 0;

View file

@ -742,7 +742,7 @@ global_bind(void *_data, struct pw_impl_client *client, uint32_t permissions,
pw_log_debug(NAME" %p: bound to %d", this, resource->id);
pw_global_add_resource(global, resource);
this->info.change_mask = ~0;
this->info.change_mask = PW_LINK_CHANGE_MASK_ALL;
pw_link_resource_info(resource, &this->info);
this->info.change_mask = 0;

View file

@ -118,7 +118,7 @@ global_bind(void *_data, struct pw_impl_client *client, uint32_t permissions,
pw_log_debug(NAME" %p: bound to %d", this, resource->id);
pw_global_add_resource(global, resource);
this->info.change_mask = ~0;
this->info.change_mask = PW_MODULE_CHANGE_MASK_ALL;
pw_module_resource_info(resource, &this->info);
this->info.change_mask = 0;