From 60b110ff93c8bfe0289a65b208efe0c7166c7c8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Barnab=C3=A1s=20P=C5=91cze?= Date: Sun, 6 Feb 2022 01:25:02 +0100 Subject: [PATCH] pulse-server: rename `facility` argument to `type` The `facility` argument is actually used for the type of the event, not its facility. --- src/modules/module-protocol-pulse/pulse-server.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/modules/module-protocol-pulse/pulse-server.c b/src/modules/module-protocol-pulse/pulse-server.c index 8aa82e6b5..1801474a2 100644 --- a/src/modules/module-protocol-pulse/pulse-server.c +++ b/src/modules/module-protocol-pulse/pulse-server.c @@ -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; }