mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
client-node: small cleanups
This commit is contained in:
parent
220d934842
commit
bf2a6bb1d7
2 changed files with 8 additions and 2 deletions
|
|
@ -679,7 +679,9 @@ static int do_port_set_io(struct impl *impl,
|
|||
memid = SPA_ID_INVALID;
|
||||
mem_offset = mem_size = 0;
|
||||
}
|
||||
mix->io = data;
|
||||
if (id == t->io.Buffers)
|
||||
mix->io = data;
|
||||
|
||||
update_io(impl, port, mix->port.port_id, id, memid);
|
||||
|
||||
pw_client_node_resource_port_set_io(this->resource,
|
||||
|
|
|
|||
|
|
@ -831,8 +831,12 @@ static void client_node_initialized(void *data)
|
|||
if ((res = spa_node_port_enum_params(impl->cnode,
|
||||
impl->direction, 0,
|
||||
t->param.idEnumFormat, &state,
|
||||
NULL, &format, &b)) <= 0)
|
||||
NULL, &format, &b)) <= 0) {
|
||||
pw_log_warn("client-stream %p: no format given", &impl->this);
|
||||
impl->adapter = impl->cnode;
|
||||
impl->use_converter = false;
|
||||
return;
|
||||
}
|
||||
|
||||
spa_pod_object_parse(format,
|
||||
"I", &media_type,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue