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

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