client-node: small cleanups

This commit is contained in:
Wim Taymans 2018-06-01 11:19:22 +02:00
parent 220d934842
commit bf2a6bb1d7
2 changed files with 8 additions and 2 deletions

View file

@ -679,7 +679,9 @@ static int do_port_set_io(struct impl *impl,
memid = SPA_ID_INVALID;
mem_offset = mem_size = 0;
}
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,

View file

@ -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,