Fix memory leak in RTMP receiver code 🤦♂️
This commit is contained in:
parent
6bec4066a9
commit
56193f89b1
1 changed files with 2 additions and 2 deletions
|
@ -1781,8 +1781,8 @@ namespace Mist{
|
|||
if (ltt){
|
||||
for (std::map<size_t, uint64_t>::iterator it = lastTagTime.begin(); it != lastTagTime.end(); ++it){
|
||||
if (it->second == reTrack){continue;}
|
||||
size_t iIdx = reTrackToID[it->second];
|
||||
if (it->first < ltt){
|
||||
size_t iIdx = reTrackToID[it->first];
|
||||
if (it->second < ltt){
|
||||
meta.setNowms(iIdx, ltt-1);
|
||||
it->second = ltt-1;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue