Sets the graph service packets before initializing (and validating the graph) in the objc graph wrapper.

PiperOrigin-RevId: 498393761
This commit is contained in:
MediaPipe Team
2022-12-29 08:36:03 -08:00
committed by Copybara-Service
parent 2d9a969d10
commit aaa16eca1f
+5 -4
View File
@@ -230,16 +230,17 @@ if ([wrapper.delegate
}
- (absl::Status)performStart {
absl::Status status = _graph->Initialize(_config);
if (!status.ok()) {
return status;
}
absl::Status status;
for (const auto& service_packet : _servicePackets) {
status = _graph->SetServicePacket(*service_packet.first, service_packet.second);
if (!status.ok()) {
return status;
}
}
status = _graph->Initialize(_config);
if (!status.ok()) {
return status;
}
status = _graph->StartRun(_inputSidePackets, _streamHeaders);
if (!status.ok()) {
return status;