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:
parent
c00d286344
commit
30d760f909
6 changed files with 34 additions and 11 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue