Skip to content

Commit

Permalink
[core] Fixed time base sync in a group.
Browse files Browse the repository at this point in the history
  • Loading branch information
maxsharabayko committed Apr 30, 2024
1 parent ceb4cca commit 57a4d9f
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions srtcore/core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8721,16 +8721,15 @@ void srt::CUDT::processCtrlAckAck(const CPacket& ctrlpkt, const time_point& tsAr
// srt_recvfile (which doesn't make any sense), you'll have a deadlock.
if (m_config.bDriftTracer)
{
const bool drift_updated SRT_ATR_UNUSED = m_pRcvBuffer->addRcvTsbPdDriftSample(ctrlpkt.getMsgTimeStamp(), tsArrival, rtt);
#if ENABLE_BONDING
if (drift_updated && m_parent->m_GroupOf)
{
ScopedLock glock(uglobal().m_GlobControlLock);
if (m_parent->m_GroupOf)
{
m_parent->m_GroupOf->synchronizeDrift(this);
}
}
ScopedLock glock(uglobal().m_GlobControlLock);
const bool drift_updated =
#endif
m_pRcvBuffer->addRcvTsbPdDriftSample(ctrlpkt.getMsgTimeStamp(), tsArrival, rtt);

#if ENABLE_BONDING
if (drift_updated)
m_parent->m_GroupOf->synchronizeDrift(this);
#endif
}

Expand Down

0 comments on commit 57a4d9f

Please sign in to comment.