mirror of
https://github.com/ossrs/srs.git
synced 2025-02-13 11:51:57 +00:00
Fix RTP packet cache bug
This commit is contained in:
parent
1064429c7e
commit
7d1be87124
1 changed files with 6 additions and 1 deletions
|
@ -475,7 +475,12 @@ SrsRtcPackets::SrsRtcPackets()
|
|||
|
||||
SrsRtcPackets::~SrsRtcPackets()
|
||||
{
|
||||
reset(use_gso, should_merge_nalus);
|
||||
vector<SrsRtpPacket2*>::iterator it;
|
||||
for (it = packets.begin(); it != packets.end(); ++it) {
|
||||
SrsRtpPacket2* p = *it;
|
||||
srs_freep(p);
|
||||
}
|
||||
packets.clear();
|
||||
}
|
||||
|
||||
void SrsRtcPackets::reset(bool gso, bool merge_nalus)
|
||||
|
|
Loading…
Reference in a new issue