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

Cache RTP packet vector

This commit is contained in:
winlin 2020-04-15 21:59:27 +08:00
parent d692f2d9c4
commit c96ffd272c
3 changed files with 22 additions and 7 deletions

View file

@ -143,8 +143,10 @@ public:
public:
std::vector<SrsRtpPacket2*> packets;
public:
SrsRtcPackets(bool gso, bool merge_nalus);
SrsRtcPackets();
virtual ~SrsRtcPackets();
public:
void reset(bool gso, bool merge_nalus);
};
class SrsRtcSenderThread : virtual public ISrsCoroutineHandler, virtual public ISrsReloadHandler