mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Refine RTP ring buffer, change to template
This commit is contained in:
parent
42ae71e96c
commit
80d45e5982
4 changed files with 98 additions and 126 deletions
|
@ -616,8 +616,8 @@ SrsRtcPlayer::SrsRtcPlayer(SrsRtcSession* s, int parent_cid)
|
|||
realtime = true;
|
||||
|
||||
// TODO: FIXME: Config the capacity?
|
||||
audio_queue_ = new SrsRtpRingBuffer(100);
|
||||
video_queue_ = new SrsRtpRingBuffer(1000);
|
||||
audio_queue_ = new SrsRtpRingBuffer<SrsRtpPacket2*>(100);
|
||||
video_queue_ = new SrsRtpRingBuffer<SrsRtpPacket2*>(1000);
|
||||
|
||||
nn_simulate_nack_drop = 0;
|
||||
nack_enabled_ = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue