mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
RTC: Refactor variable name
This commit is contained in:
parent
e3d010113f
commit
69e4a1b5e7
6 changed files with 32 additions and 42 deletions
|
|
@ -291,4 +291,5 @@ void SrsRtpNackForReceiver::remove_timeout_packets(void)
|
|||
rtp_->notify_nack_list_full();
|
||||
queue_.clear();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -40,10 +40,9 @@ class SrsRtpRingBuffer;
|
|||
// [seq1(done)|seq2|seq3 ... seq10|seq11(lost)|seq12|seq13]
|
||||
// \___(head_sequence_) \ \___(highest_sequence_)
|
||||
// \___(no received, in nack list)
|
||||
// * seq1: The packet is done, we already got the entire frame and processed it.
|
||||
// * seq2,seq3,...,seq10,seq12,seq13: We are processing theses packets, for example, some FU-A or NALUs,
|
||||
// but not an entire video frame right now.
|
||||
// * seq10: This packet is lost or not received, we put it in the nack list.
|
||||
// * seq1: The packet is done, we have already got and processed it.
|
||||
// * seq2,seq3,...,seq10,seq12,seq13: Theses packets are in queue and wait to be processed.
|
||||
// * seq10: This packet is lost or not received, we will put it in the nack list.
|
||||
// We store the received packets in ring buffer.
|
||||
class SrsRtpRingBuffer
|
||||
{
|
||||
|
|
@ -84,7 +83,7 @@ public:
|
|||
// Get the packet by seq.
|
||||
SrsRtpPacket2* at(uint16_t seq);
|
||||
public:
|
||||
// TODO: FIXME: Move it?
|
||||
// TODO: FIXME: Refine it?
|
||||
void notify_nack_list_full();
|
||||
void notify_drop_seq(uint16_t seq);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue