mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-16 08:56:45 -05:00
client-node: remove unused field, add some debug
This commit is contained in:
parent
fc57f05e56
commit
fb1ea646f5
1 changed files with 6 additions and 8 deletions
|
|
@ -78,8 +78,7 @@ struct buffer {
|
||||||
};
|
};
|
||||||
|
|
||||||
struct mix {
|
struct mix {
|
||||||
bool valid;
|
unsigned int valid:1;
|
||||||
bool active;
|
|
||||||
uint32_t id;
|
uint32_t id;
|
||||||
struct port *port;
|
struct port *port;
|
||||||
uint32_t n_buffers;
|
uint32_t n_buffers;
|
||||||
|
|
@ -135,6 +134,7 @@ struct node {
|
||||||
|
|
||||||
uint32_t n_params;
|
uint32_t n_params;
|
||||||
struct spa_pod **params;
|
struct spa_pod **params;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
struct impl {
|
struct impl {
|
||||||
|
|
@ -214,11 +214,9 @@ static void mix_init(struct mix *mix, struct port *p, uint32_t id)
|
||||||
mix->valid = true;
|
mix->valid = true;
|
||||||
mix->id = id;
|
mix->id = id;
|
||||||
mix->port = p;
|
mix->port = p;
|
||||||
mix->active = false;
|
|
||||||
mix->n_buffers = 0;
|
mix->n_buffers = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static struct mix *ensure_mix(struct impl *impl, struct port *p, uint32_t mix_id)
|
static struct mix *ensure_mix(struct impl *impl, struct port *p, uint32_t mix_id)
|
||||||
{
|
{
|
||||||
struct mix *mix;
|
struct mix *mix;
|
||||||
|
|
@ -1356,8 +1354,8 @@ static int port_init_mix(void *data, struct pw_impl_port_mix *mix)
|
||||||
mix->id * sizeof(struct spa_io_buffers), void);
|
mix->id * sizeof(struct spa_io_buffers), void);
|
||||||
*mix->io = SPA_IO_BUFFERS_INIT;
|
*mix->io = SPA_IO_BUFFERS_INIT;
|
||||||
|
|
||||||
pw_log_debug(NAME " %p: init mix io %d %p %p", impl, mix->id, mix->io,
|
pw_log_debug(NAME " %p: init mix id:%d io:%p base:%p", impl,
|
||||||
impl->io_areas->map->ptr);
|
mix->id, mix->io, impl->io_areas->map->ptr);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
@ -1369,8 +1367,8 @@ static int port_release_mix(void *data, struct pw_impl_port_mix *mix)
|
||||||
struct node *this = &impl->node;
|
struct node *this = &impl->node;
|
||||||
struct mix *m;
|
struct mix *m;
|
||||||
|
|
||||||
pw_log_debug(NAME " %p: remove mix io %d %p %p", this, mix->id, mix->io,
|
pw_log_debug(NAME " %p: remove mix id:%d io:%p base:%p",
|
||||||
impl->io_areas->map->ptr);
|
this, mix->id, mix->io, impl->io_areas->map->ptr);
|
||||||
|
|
||||||
if ((m = find_mix(port, mix->port.port_id)) == NULL || !m->valid)
|
if ((m = find_mix(port, mix->port.port_id)) == NULL || !m->valid)
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue