From 075fde36136750c95f681906af52be063fbb0843 Mon Sep 17 00:00:00 2001 From: Christoph Haag Date: Thu, 3 Mar 2022 01:42:02 +0100 Subject: [PATCH] st/oxr: propagate a few more space handling return codes --- src/xrt/state_trackers/oxr/oxr_session_frame_end.c | 4 +++- src/xrt/state_trackers/oxr/oxr_space.c | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/xrt/state_trackers/oxr/oxr_session_frame_end.c b/src/xrt/state_trackers/oxr/oxr_session_frame_end.c index 3c482c027..18f3193ea 100644 --- a/src/xrt/state_trackers/oxr/oxr_session_frame_end.c +++ b/src/xrt/state_trackers/oxr/oxr_session_frame_end.c @@ -805,7 +805,9 @@ handle_space(struct oxr_logger *log, } 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; return true; diff --git a/src/xrt/state_trackers/oxr/oxr_space.c b/src/xrt/state_trackers/oxr/oxr_space.c index 69f773dd1..a92ae2313 100644 --- a/src/xrt/state_trackers/oxr/oxr_space.c +++ b/src/xrt/state_trackers/oxr/oxr_space.c @@ -253,7 +253,9 @@ oxr_space_pure_relation_from_space(struct oxr_logger *log, { struct xrt_space_relation pure_space_relation; 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}; m_relation_chain_push_relation(&xrc, &pure_space_relation);