diff --git a/src/Rtsp/RtpReceiver.h b/src/Rtsp/RtpReceiver.h index 933a14c0..62a16851 100644 --- a/src/Rtsp/RtpReceiver.h +++ b/src/Rtsp/RtpReceiver.h @@ -64,6 +64,7 @@ public: output(seq, std::move(packet)); // 清空连续包列表 flushPacket(); + _pkt_drop_cache_map.clear(); return; } @@ -163,9 +164,6 @@ private: } break; } - if (!_pkt_drop_cache_map.empty()) { - _pkt_drop_cache_map.clear(); - } } iterator popIterator(iterator it) {