check rgb buffer avoid crash

This commit is contained in:
Joe Dong
2023-10-14 14:03:50 +08:00
parent 6d397e3e3a
commit 1829753f51
2 changed files with 9 additions and 0 deletions
@@ -421,5 +421,6 @@ class OBCameraNode {
std::shared_ptr<JPEGDecoder> jpeg_decoder_ = nullptr;
uint8_t* rgb_buffer_ = nullptr;
bool is_color_frame_decoded_ = false;
std::mutex device_lock_;
};
} // namespace orbbec_camera