mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2024-12-29 11:06:18 +00:00
st/oxr: propagate a few more space handling return codes
This commit is contained in:
parent
58c9679087
commit
075fde3613
|
@ -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;
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue