decrreased frameinflight for raw packet output

This commit is contained in:
Mohit Saroha 2022-05-10 13:17:57 +05:30
parent 4a20e9909d
commit 6017df8b50

View File

@ -108,6 +108,7 @@ void CallFrameDelegate(void* wrapperVoid, const std::string& streamName,
MPPGraph* wrapper = (__bridge MPPGraph*)wrapperVoid; MPPGraph* wrapper = (__bridge MPPGraph*)wrapperVoid;
@autoreleasepool { @autoreleasepool {
if (packetType == MPPPacketTypeRaw) { if (packetType == MPPPacketTypeRaw) {
wrapper->_framesInFlight--;
[wrapper.delegate mediapipeGraph:wrapper [wrapper.delegate mediapipeGraph:wrapper
didOutputPacket:packet didOutputPacket:packet
fromStream:streamName]; fromStream:streamName];