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

Perf: Avoid RTP packet copy for player NACK.

This commit is contained in:
winlin 2021-02-28 08:07:06 +08:00
parent 8382f570dd
commit af0b50f54c
4 changed files with 42 additions and 39 deletions

View file

@ -252,7 +252,7 @@ public:
public:
virtual srs_error_t cycle();
private:
srs_error_t send_packet(SrsRtpPacket2* pkt);
srs_error_t send_packet(SrsRtpPacket2*& pkt);
public:
// Directly set the status of track, generally for init to set the default value.
void set_all_tracks_status(bool status);