1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

RTC: use c++ 98 style map.erase and NULL

This commit is contained in:
jinxue.cgh 2020-05-26 20:20:36 +08:00 committed by winlin
parent 23447dd6e2
commit b8ab6ef6ce
2 changed files with 3 additions and 3 deletions

View file

@ -248,7 +248,7 @@ void SrsRtpNackForReceiver::get_nack_seqs(vector<uint16_t>& seqs)
int alive_time = now - nack_info.generate_time_;
if (alive_time > opts_.max_alive_time || nack_info.req_nack_count_ > opts_.max_count) {
rtp_->notify_drop_seq(seq);
iter = queue_.erase(iter);
queue_.erase(iter++);
continue;
}