fix: improve software alignment handling and cleanup in image registration mode

This commit is contained in:
slz
2026-09-14 16:47:22 +08:00
parent c28fcb9052
commit 113a956afa
2 changed files with 8 additions and 2 deletions
+4
View File
@@ -903,6 +903,8 @@ void OBCameraNode::setImageRegistrationModeCallback(
auto rollback_after_error = [&](const std::string& error_message) {
try {
stopColorFrameThreads();
clearColorFrameQueues();
restore_old_mode();
if (was_running && !pipeline_started_.load()) {
startStreams();
@@ -924,6 +926,8 @@ void OBCameraNode::setImageRegistrationModeCallback(
if (was_running) {
stopStreams();
}
stopColorFrameThreads();
clearColorFrameQueues();
apply_image_registration_mode(mode);