Skip to content
This repository was archived by the owner on Oct 25, 2024. It is now read-only.

Commit

Permalink
Remove critical section in pacer for cg
Browse files Browse the repository at this point in the history
  • Loading branch information
taste1981 committed May 5, 2019
1 parent 43d3e50 commit c4f8528
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/pacing/paced_sender.cc
Original file line number Diff line number Diff line change
Expand Up @@ -407,12 +407,12 @@ bool PacedSender::SendPacket(const PacketQueueInterface::Packet& packet,
return false;
}
}
critsect_.Leave();
//critsect_.Leave();
RTC_LOG(LS_ERROR) << "b:" << clock_->TimeInMilliseconds();
const bool success = packet_sender_->TimeToSendPacket(
packet.ssrc, packet.sequence_number, packet.capture_time_ms,
packet.retransmission, pacing_info);
critsect_.Enter();
//critsect_.Enter();
RTC_LOG(LS_ERROR) << "a:" << clock_->TimeInMilliseconds();
if (success) {
if (first_sent_packet_ms_ == -1)
Expand Down

0 comments on commit c4f8528

Please sign in to comment.