Fix bug for callback color data

This commit is contained in:
lixiaobin
2023-11-07 11:26:20 +08:00
parent e863552371
commit e06850094f
+1 -1
View File
@@ -287,7 +287,7 @@ void OBCameraNode::startStreams() {
throw std::runtime_error("Failed to start pipeline");
}
if (enable_stream_[COLOR]) {
colorFrameThread_ = std::make_shared<std::thread>([this]() { noNewColorFrameCallback(); });
colorFrameThread_ = std::make_shared<std::thread>([this]() { onNewColorFrameCallback(); });
}
if (enable_frame_sync_) {
pipeline_->enableFrameSync();