1
0
mirror of https://github.com/ShaYmez/xlxd.git synced 2026-06-03 14:14:41 -04:00

Merge pull request #193 from narspt/patch-8

fix dplus sending header packets inconsistently
This commit is contained in:
LX3JL
2021-07-06 08:54:52 +02:00
committed by GitHub
+5 -1
View File
@@ -315,7 +315,7 @@ void CDplusProtocol::HandleQueue(void)
m_Socket.Send(buffer, client->GetIp());
// is it time to insert a DVheader copy ?
if ( (m_StreamsCache[iModId].m_iSeqCounter++ % 21) == 20 )
if ( (m_StreamsCache[iModId].m_iSeqCounter % 21) == 20 )
{
// yes, clone it
CDvHeaderPacket packet2(m_StreamsCache[iModId].m_dvHeader);
@@ -333,6 +333,10 @@ void CDplusProtocol::HandleQueue(void)
g_Reflector.ReleaseClients();
}
if ( packet->IsDvFrame() )
{
m_StreamsCache[iModId].m_iSeqCounter++;
}
// done
delete packet;