diff --git a/mediapipe/objc/MPPGraph.mm b/mediapipe/objc/MPPGraph.mm index 67d71720e..84819c004 100644 --- a/mediapipe/objc/MPPGraph.mm +++ b/mediapipe/objc/MPPGraph.mm @@ -108,6 +108,7 @@ void CallFrameDelegate(void* wrapperVoid, const std::string& streamName, MPPGraph* wrapper = (__bridge MPPGraph*)wrapperVoid; @autoreleasepool { if (packetType == MPPPacketTypeRaw) { + wrapper->_framesInFlight--; [wrapper.delegate mediapipeGraph:wrapper didOutputPacket:packet fromStream:streamName];