mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
client-node: rename confusing id to mix_id
There is already an id in the port_mix structure that can be used to index the mix structures in map if needed, the mix_id is the port_id of the mixer and should not be confused.
This commit is contained in:
parent
85af2bdef2
commit
265e6ca352
1 changed files with 4 additions and 4 deletions
|
|
@ -50,7 +50,7 @@ struct buffer {
|
|||
|
||||
struct mix {
|
||||
unsigned int valid:1;
|
||||
uint32_t id;
|
||||
uint32_t mix_id;
|
||||
struct port *port;
|
||||
uint32_t peer_id;
|
||||
uint32_t n_buffers;
|
||||
|
|
@ -209,10 +209,10 @@ static struct mix *find_mix(struct port *p, uint32_t mix_id)
|
|||
return mix;
|
||||
}
|
||||
|
||||
static void mix_init(struct mix *mix, struct port *p, uint32_t id)
|
||||
static void mix_init(struct mix *mix, struct port *p, uint32_t mix_id)
|
||||
{
|
||||
mix->valid = true;
|
||||
mix->id = id;
|
||||
mix->mix_id = mix_id;
|
||||
mix->port = p;
|
||||
mix->n_buffers = 0;
|
||||
}
|
||||
|
|
@ -281,7 +281,7 @@ static void mix_clear(struct impl *impl, struct mix *mix)
|
|||
if (!mix->valid)
|
||||
return;
|
||||
do_port_use_buffers(impl, port->direction, port->id,
|
||||
mix->id, 0, NULL, 0);
|
||||
mix->mix_id, 0, NULL, 0);
|
||||
mix->valid = false;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue