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

RTC: Only cache the UDP packet message

This commit is contained in:
winlin 2021-02-26 22:55:27 +08:00
parent e79293a3bc
commit 30809aee60
6 changed files with 34 additions and 11 deletions

View file

@ -304,6 +304,7 @@ public:
virtual ~SrsRtpPacket2();
private:
void reuse();
void reuse_shared_msg();
public:
// Reset the object to reuse it.
virtual bool reset();
@ -527,5 +528,6 @@ extern SrsRtpObjectCacheManager<SrsRtpFUAPayload2>* _srs_rtp_fua_cache;
// For RTP packet shared messages cache.
extern SrsRtpObjectCacheManager<SrsSharedPtrMessage>* _srs_rtp_msg_cache;
extern SrsRtpObjectCacheManager<SrsSharedPtrMessage>* _srs_rtp_msg_cache2;
#endif