The open source OpenXR runtime

a/tracking: Do not push empty frames to debug sink

authored by

Jakob Bornecrantz and committed by
Ryan Pavlik
c4a734e5 0f17fa0f

+6 -1
+6 -1
src/xrt/auxiliary/tracking/t_helper_debug_sink.hpp
··· 123 123 rgb[0] = cv::Mat(); 124 124 rgb[1] = cv::Mat(); 125 125 126 - // Does checking. 126 + // Don't try to push null frames. 127 + if (frame == nullptr) { 128 + return; 129 + } 130 + 131 + // Does checking if the sink is active. 127 132 u_sink_debug_push_frame(&usd, frame); 128 133 129 134 // We unreference the frame here, downstream is either