fix: remove redundant metadata checks

This commit is contained in:
slz
2026-01-16 11:23:21 +08:00
committed by ob-yalian
parent b91100837a
commit 29b9693a2d
+1 -3
View File
@@ -3604,9 +3604,7 @@ void OBCameraNode::onNewFrameCallback(const std::shared_ptr<ob::Frame> &frame,
}
CHECK(camera_info_publishers_.count(stream_index) > 0);
camera_info_publishers_[stream_index]->publish(camera_info);
if (isPublishMetaData(pid_)) {
publishMetadata(frame, stream_index, camera_info.header);
}
publishMetadata(frame, stream_index, camera_info.header);
CHECK_NOTNULL(image_publishers_[stream_index]);
if (image_publishers_[stream_index]->get_subscription_count() == 0) {
return;