diff --git a/mediapipe/tasks/ios/core/sources/MPPTaskInfo.mm b/mediapipe/tasks/ios/core/sources/MPPTaskInfo.mm index 2c0785046..5f614632a 100644 --- a/mediapipe/tasks/ios/core/sources/MPPTaskInfo.mm +++ b/mediapipe/tasks/ios/core/sources/MPPTaskInfo.mm @@ -106,13 +106,13 @@ using ::mediapipe::InputStreamInfo; for (NSString *inputStream in self.inputStreams) { graphConfig.add_input_stream(inputStream.cppString); + + NSString *taskInputStream = [MPPTaskInfo addStreamNamePrefix:inputStream]; + taskSubgraphNode->add_input_stream(taskInputStream.cppString); NSString *strippedInputStream = [MPPTaskInfo stripTagIndex:inputStream]; flowLimitCalculatorNode->add_input_stream(strippedInputStream.cppString); - NSString *taskInputStream = [MPPTaskInfo addStreamNamePrefix:inputStream]; - taskSubgraphNode->add_input_stream(taskInputStream.cppString); - NSString *strippedTaskInputStream = [MPPTaskInfo stripTagIndex:taskInputStream]; flowLimitCalculatorNode->add_output_stream(strippedTaskInputStream.cppString); }