From d462b750fbd85d1b48a14af6792ff2cbc75e5b38 Mon Sep 17 00:00:00 2001 From: winlin Date: Mon, 4 May 2020 08:14:37 +0800 Subject: [PATCH] Add TODO: Should not wait for NACK packets. --- trunk/src/app/srs_app_rtp_queue.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/trunk/src/app/srs_app_rtp_queue.cpp b/trunk/src/app/srs_app_rtp_queue.cpp index 3702e775f..4cbafc582 100644 --- a/trunk/src/app/srs_app_rtp_queue.cpp +++ b/trunk/src/app/srs_app_rtp_queue.cpp @@ -372,6 +372,7 @@ void SrsRtpAudioQueue::collect_frames(SrsRtpNackForReceiver* nack, vectorend; ++next) { SrsRtpPacket2* pkt = queue_->at(next); + // TODO: FIXME: Should not wait for NACK packets. // Not found or in NACK, stop collecting frame. if (!pkt || nack->find(next) != NULL) { srs_trace("wait for nack seq=%u", next); @@ -514,6 +515,7 @@ void SrsRtpVideoQueue::collect_frame(SrsRtpNackForReceiver* nack, SrsRtpPacket2* for (; next != queue_->end; ++next) { SrsRtpPacket2* pkt = queue_->at(next); + // TODO: FIXME: Should not wait for NACK packets. // Not found or in NACK, stop collecting frame. if (!pkt || nack->find(next) != NULL) { srs_trace("wait for nack seq=%u", next);