From 03a2014ce1131c9bb9aae45e3aa1bbc2da9fc20e Mon Sep 17 00:00:00 2001 From: Mohit Saroha Date: Tue, 10 May 2022 12:27:09 +0530 Subject: [PATCH] decresed frameinflight in case of raw packet also --- mediapipe/objc/MPPGraph.mm | 1 + 1 file changed, 1 insertion(+) 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];