mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
pulse-server: rename facility argument to type
The `facility` argument is actually used for the type of the event, not its facility.
This commit is contained in:
parent
3bd40f976f
commit
60b110ff93
1 changed files with 3 additions and 3 deletions
|
|
@ -209,14 +209,14 @@ static struct stream *find_stream(struct client *client, uint32_t index)
|
|||
}
|
||||
|
||||
static int send_object_event(struct client *client, struct pw_manager_object *o,
|
||||
uint32_t facility)
|
||||
uint32_t type)
|
||||
{
|
||||
uint32_t event = 0, mask = 0, res_index = o->index;
|
||||
|
||||
if (pw_manager_object_is_sink(o)) {
|
||||
client_queue_subscribe_event(client,
|
||||
SUBSCRIPTION_MASK_SINK,
|
||||
SUBSCRIPTION_EVENT_SINK | facility,
|
||||
SUBSCRIPTION_EVENT_SINK | type,
|
||||
res_index);
|
||||
}
|
||||
if (pw_manager_object_is_source_or_monitor(o)) {
|
||||
|
|
@ -248,7 +248,7 @@ static int send_object_event(struct client *client, struct pw_manager_object *o,
|
|||
if (event != SPA_ID_INVALID)
|
||||
client_queue_subscribe_event(client,
|
||||
mask,
|
||||
event | facility,
|
||||
event | type,
|
||||
res_index);
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue