Sets the graph service packets before initializing (and validating the graph) in the objc graph wrapper.
PiperOrigin-RevId: 498393761
This commit is contained in:
parent
2d9a969d10
commit
aaa16eca1f
|
@ -230,16 +230,17 @@ if ([wrapper.delegate
|
||||||
}
|
}
|
||||||
|
|
||||||
- (absl::Status)performStart {
|
- (absl::Status)performStart {
|
||||||
absl::Status status = _graph->Initialize(_config);
|
absl::Status status;
|
||||||
if (!status.ok()) {
|
|
||||||
return status;
|
|
||||||
}
|
|
||||||
for (const auto& service_packet : _servicePackets) {
|
for (const auto& service_packet : _servicePackets) {
|
||||||
status = _graph->SetServicePacket(*service_packet.first, service_packet.second);
|
status = _graph->SetServicePacket(*service_packet.first, service_packet.second);
|
||||||
if (!status.ok()) {
|
if (!status.ok()) {
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
status = _graph->Initialize(_config);
|
||||||
|
if (!status.ok()) {
|
||||||
|
return status;
|
||||||
|
}
|
||||||
status = _graph->StartRun(_inputSidePackets, _streamHeaders);
|
status = _graph->StartRun(_inputSidePackets, _streamHeaders);
|
||||||
if (!status.ok()) {
|
if (!status.ok()) {
|
||||||
return status;
|
return status;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user