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

Unified Diff: webrtc/modules/video_coding/nack_module.cc

Issue 1778503002: Experiment for the nack module. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Feedback fixes Created 4 years, 9 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/modules/video_coding/nack_module.cc
diff --git a/webrtc/modules/video_coding/nack_module.cc b/webrtc/modules/video_coding/nack_module.cc
index 319a902ca28f3c289cf3cb743687a0aab48670b8..2f04e3989fd509e0481c9e1bce30a3b02eb94d56 100644
--- a/webrtc/modules/video_coding/nack_module.cc
+++ b/webrtc/modules/video_coding/nack_module.cc
@@ -118,6 +118,12 @@ void NackModule::UpdateRtt(int64_t rtt_ms) {
rtt_ms_ = rtt_ms;
}
+void NackModule::Flush() {
+ rtc::CritScope lock(&crit_);
+ nack_list_.clear();
+ keyframe_list_.clear();
+}
+
void NackModule::Stop() {
rtc::CritScope lock(&crit_);
running_ = false;

Powered by Google App Engine
This is Rietveld 408576698