Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(230)

Unified Diff: webrtc/voice_engine/channel.cc

Issue 2061423003: Refactor NACK bitrate allocation (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Fixed data race Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webrtc/voice_engine/channel.cc
diff --git a/webrtc/voice_engine/channel.cc b/webrtc/voice_engine/channel.cc
index 943a04572be088689cb655578001dd533703c0b7..861efde3f395ec1c682b33295169ad19593e152c 100644
--- a/webrtc/voice_engine/channel.cc
+++ b/webrtc/voice_engine/channel.cc
@@ -149,6 +149,20 @@ class RtpPacketSenderProxy : public RtpPacketSender {
}
}
+ bool AllocateRetransmissionBitrate(size_t bytes) override {
+ rtc::CritScope lock(&crit_);
+ if (rtp_packet_sender_)
+ return rtp_packet_sender_->AllocateRetransmissionBitrate(bytes);
+ return false;
+ }
+
+ int CurrentRetransmissionBitrate() override {
+ rtc::CritScope lock(&crit_);
+ if (rtp_packet_sender_)
+ return rtp_packet_sender_->CurrentRetransmissionBitrate();
+ return 0;
+ }
+
private:
rtc::ThreadChecker thread_checker_;
rtc::CriticalSection crit_;
« webrtc/video/send_statistics_proxy.cc ('K') | « webrtc/video/video_send_stream_tests.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698