mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-05-03 06:47:04 -04:00
pulse-server: message: use union to store event data
Store subscription event data in a union instead of just an array for better readability.
This commit is contained in:
parent
d467f6fdc6
commit
46e4a33f27
3 changed files with 21 additions and 9 deletions
|
|
@ -847,7 +847,7 @@ struct message *message_alloc(struct impl *impl, uint32_t channel, uint32_t size
|
|||
return NULL;
|
||||
}
|
||||
|
||||
spa_zero(msg->extra);
|
||||
msg->type = MESSAGE_TYPE_UNSPECIFIED;
|
||||
msg->channel = channel;
|
||||
msg->offset = 0;
|
||||
msg->length = size;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue