Fix the issue of RTP sorting cache crashing when the sequence is reset (#3915)

This commit is contained in:
Dw9 2024-09-18 19:09:14 +08:00 committed by GitHub
parent 596531ecf5
commit 046de691cb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -64,6 +64,7 @@ public:
output(seq, std::move(packet)); output(seq, std::move(packet));
// 清空连续包列表 // 清空连续包列表
flushPacket(); flushPacket();
_pkt_drop_cache_map.clear();
return; return;
} }
@ -163,9 +164,6 @@ private:
} }
break; break;
} }
if (!_pkt_drop_cache_map.empty()) {
_pkt_drop_cache_map.clear();
}
} }
iterator popIterator(iterator it) { iterator popIterator(iterator it) {