st/oxr: propagate a few more space handling return codes

This commit is contained in:
Christoph Haag 2022-03-03 01:42:02 +01:00
parent 58c9679087
commit 075fde3613
2 changed files with 6 additions and 2 deletions

View file

@ -805,7 +805,9 @@ handle_space(struct oxr_logger *log,
} }
struct xrt_space_relation rel; struct xrt_space_relation rel;
oxr_space_pure_pose_from_space(log, timestamp, &pose, spc, &rel); if (!oxr_space_pure_pose_from_space(log, timestamp, &pose, spc, &rel)) {
return false;
}
*out_pose = rel.pose; *out_pose = rel.pose;
return true; return true;

View file

@ -253,7 +253,9 @@ oxr_space_pure_relation_from_space(struct oxr_logger *log,
{ {
struct xrt_space_relation pure_space_relation; struct xrt_space_relation pure_space_relation;
struct xrt_device *xdev; struct xrt_device *xdev;
oxr_space_get_pure_relation(log, spc, time, &pure_space_relation, &xdev); if (!oxr_space_get_pure_relation(log, spc, time, &pure_space_relation, &xdev)) {
return false;
}
struct xrt_relation_chain xrc = {0}; struct xrt_relation_chain xrc = {0};
m_relation_chain_push_relation(&xrc, &pure_space_relation); m_relation_chain_push_relation(&xrc, &pure_space_relation);