MCPcopy Create free account
hub / github.com/Haivision/srt / dropUnitInPos

Method dropUnitInPos

srtcore/buffer_rcv.cpp:791–807  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

789}
790
791bool CRcvBuffer::dropUnitInPos(int pos)
792{
793 if (!m_entries[pos].pUnit)
794 return false;
795 if (m_tsbpd.isEnabled())
796 {
797 updateTsbPdTimeBase(packetAt(pos).getMsgTimeStamp());
798 }
799 else if (m_bMessageAPI && !packetAt(pos).getMsgOrderFlag())
800 {
801 --m_numOutOfOrderPackets;
802 if (pos == m_iFirstReadableOutOfOrder)
803 m_iFirstReadableOutOfOrder = -1;
804 }
805 releaseUnitInPos(pos);
806 return true;
807}
808
809void CRcvBuffer::releaseNextFillerEntries()
810{

Callers

nothing calls this directly

Calls 3

isEnabledMethod · 0.80
getMsgTimeStampMethod · 0.80
getMsgOrderFlagMethod · 0.80

Tested by

no test coverage detected