decresed frameinflight in case of raw packet also

This commit is contained in:
Mohit Saroha 2022-05-10 12:27:09 +05:30
parent 4a20e9909d
commit 03a2014ce1

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];