impl-node: don't warn when setting io fails

It's ok to not implement the io_position area. Don't warn when this
happens but always configure the area in the node.
This commit is contained in:
Wim Taymans 2020-03-03 13:18:36 +01:00
parent 8096984b7e
commit b9916ea5b2

View file

@ -673,12 +673,12 @@ int pw_impl_node_set_driver(struct pw_impl_node *node, struct pw_impl_node *driv
SPA_IO_Position,
&driver->rt.activation->position,
sizeof(struct spa_io_position))) < 0) {
pw_log_warn(NAME" %p: set position %s", node, spa_strerror(res));
} else {
pw_log_trace(NAME" %p: set position %p", node, &driver->rt.activation->position);
node->rt.position = &driver->rt.activation->position;
pw_log_debug(NAME" %p: set position: %s", node, spa_strerror(res));
}
pw_log_trace(NAME" %p: set position %p", node, &driver->rt.activation->position);
node->rt.position = &driver->rt.activation->position;
pw_loop_invoke(node->data_loop,
do_move_nodes, SPA_ID_INVALID, &driver, sizeof(struct pw_impl_node *),
true, impl);