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

RTC: Fix object cache bug, reset payload when recycle

This commit is contained in:
winlin 2021-04-01 10:21:19 +08:00
parent 3d4d250eb9
commit 4d5c7e0a73
2 changed files with 18 additions and 2 deletions

View file

@ -473,7 +473,7 @@ public:
SrsRtpRawPayload();
virtual ~SrsRtpRawPayload();
public:
bool recycle() { return true; }
bool recycle();
// interface ISrsRtpPayloader
public:
virtual uint64_t nb_bytes();
@ -573,7 +573,7 @@ public:
SrsRtpFUAPayload2();
virtual ~SrsRtpFUAPayload2();
public:
bool recycle() { return true; }
bool recycle();
// interface ISrsRtpPayloader
public:
virtual uint64_t nb_bytes();