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
|
@ -34,6 +34,7 @@
|
|||
#include <srs_app_sdp.hpp>
|
||||
#include <srs_app_reload.hpp>
|
||||
#include <srs_kernel_rtp.hpp>
|
||||
#include <srs_app_rtp_queue.hpp>
|
||||
|
||||
#include <string>
|
||||
#include <map>
|
||||
|
@ -59,7 +60,6 @@ class SrsRtpPacket2;
|
|||
class ISrsCodec;
|
||||
class SrsRtpNackForReceiver;
|
||||
class SrsRtpIncommingVideoFrame;
|
||||
class SrsRtpRingBuffer;
|
||||
|
||||
const uint8_t kSR = 200;
|
||||
const uint8_t kRR = 201;
|
||||
|
@ -214,8 +214,8 @@ private:
|
|||
uint16_t video_payload_type;
|
||||
uint32_t video_ssrc;
|
||||
// NACK ARQ ring buffer.
|
||||
SrsRtpRingBuffer* audio_queue_;
|
||||
SrsRtpRingBuffer* video_queue_;
|
||||
SrsRtpRingBuffer<SrsRtpPacket2*>* audio_queue_;
|
||||
SrsRtpRingBuffer<SrsRtpPacket2*>* video_queue_;
|
||||
// Simulators.
|
||||
int nn_simulate_nack_drop;
|
||||
private:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue