mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Perf: Refine the recycle RTP packet, user should reset it
This commit is contained in:
parent
b71cafea58
commit
8de201b635
4 changed files with 27 additions and 8 deletions
|
@ -324,6 +324,10 @@ private:
|
|||
public:
|
||||
SrsRtpPacket2();
|
||||
virtual ~SrsRtpPacket2();
|
||||
public:
|
||||
// User MUST reset the packet if got from cache,
|
||||
// except copy(we will assign the header and copy payload).
|
||||
void reset();
|
||||
private:
|
||||
void recycle_payload();
|
||||
void recycle_shared_msg();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue