Skip to content

Commit

Permalink
No public description
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 597064241
  • Loading branch information
MediaPipe Team authored and copybara-github committed Jan 9, 2024
1 parent 9329038 commit 96cb2fe
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions mediapipe/java/com/google/mediapipe/framework/jni/graph.cc
Original file line number Diff line number Diff line change
Expand Up @@ -439,8 +439,6 @@ absl::Status Graph::StartRunningGraph(JNIEnv* env) {
// Running as a synchronized mode, the same Java thread is available
// throughout the run.
running_graph_.reset(new CalculatorGraph());
// Set the mode for adding packets to graph input streams.
running_graph_->SetGraphInputStreamAddMode(graph_input_stream_add_mode_);
if (VLOG_IS_ON(2)) {
ABSL_LOG(INFO) << "input packet streams:";
for (auto& name : graph_config()->input_stream()) {
Expand Down Expand Up @@ -475,6 +473,9 @@ absl::Status Graph::StartRunningGraph(JNIEnv* env) {
running_graph_.reset(nullptr);
return status;
}
// Set the mode for adding packets to graph input streams.
running_graph_->SetGraphInputStreamAddMode(graph_input_stream_add_mode_);

ABSL_LOG(INFO) << "Start running the graph, waiting for inputs.";
status =
running_graph_->StartRun(CreateCombinedSidePackets(), stream_headers_);
Expand Down

0 comments on commit 96cb2fe

Please sign in to comment.