From 96cb2fe8f27c5ba5351a1153c8271013819dcd93 Mon Sep 17 00:00:00 2001 From: MediaPipe Team Date: Tue, 9 Jan 2024 15:38:06 -0800 Subject: [PATCH] No public description PiperOrigin-RevId: 597064241 --- mediapipe/java/com/google/mediapipe/framework/jni/graph.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mediapipe/java/com/google/mediapipe/framework/jni/graph.cc b/mediapipe/java/com/google/mediapipe/framework/jni/graph.cc index d3a3768426..943b5d2ffd 100644 --- a/mediapipe/java/com/google/mediapipe/framework/jni/graph.cc +++ b/mediapipe/java/com/google/mediapipe/framework/jni/graph.cc @@ -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()) { @@ -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_);