- remove suspicious part of code - caused hanging sometimes

This commit is contained in:
Dmytro Bogovych 2018-10-12 11:23:29 +03:00
parent fba79c57de
commit 905d8269dc
1 changed files with 466 additions and 462 deletions

View File

@ -214,10 +214,14 @@ RtpBuffer::FetchResult RtpBuffer::fetch(ResultList& rl)
rl.push_back(p.rtp());
// Maybe it is time to replay packet right now ? For case of AMR SID packets
if (mFetchedPacket.rtp() && gap == 0 && mFetchedPacket.timelength() >= 10 && p.timelength() >= 10)
/*if (mFetchedPacket.rtp() && gap == 0 && mFetchedPacket.timelength() >= 10 && p.timelength() >= 10)
{
int timestampDelta;
// Timestamp difference
int timestampDelta = TimeHelper::getDelta(p.rtp()->GetTimestamp(), mFetchedPacket.rtp()->GetTimestamp());
if (p.rtp()->GetTimestamp() > mFetchedPacket.rtp()->GetTimestamp())
timestampDelta = TimeHelper::getDelta(p.rtp()->GetTimestamp(), mFetchedPacket.rtp()->GetTimestamp());
else
timestampDelta = TimeHelper::getDelta(mFetchedPacket.rtp()->GetTimestamp(), p.rtp()->GetTimestamp());
// Timestamp units per packet
int nrOfPackets = timestampDelta / (p.timelength() * (p.rate() / 1000));
@ -228,7 +232,7 @@ RtpBuffer::FetchResult RtpBuffer::fetch(ResultList& rl)
//assert(false);
rl.push_back(p.rtp());
}
}
}*/
// Save last returned normal packet
mFetchedPacket = mPacketList.front();