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

Unified Diff: webrtc/modules/utility/source/process_thread_impl.cc

Issue 1257833004: Prevent TimeUntilNextProcess log spam. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 5 years, 5 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/modules/utility/source/process_thread_impl.cc
diff --git a/webrtc/modules/utility/source/process_thread_impl.cc b/webrtc/modules/utility/source/process_thread_impl.cc
index 4ce1675030a49a52254aab8c1718674a0ef3605d..947fdb0db6a4cd82c053e46c75f7a97078d41af2 100644
--- a/webrtc/modules/utility/source/process_thread_impl.cc
+++ b/webrtc/modules/utility/source/process_thread_impl.cc
@@ -25,12 +25,9 @@ const int64_t kCallProcessImmediately = -1;
int64_t GetNextCallbackTime(Module* module, int64_t time_now) {
int64_t interval = module->TimeUntilNextProcess();
- // Currently some implementations erroneously return error codes from
- // TimeUntilNextProcess(). So, as is, we correct that and log an error.
if (interval < 0) {
- LOG(LS_ERROR) << "TimeUntilNextProcess returned an invalid value "
- << interval;
- interval = 0;
+ // Falling behind, we should call the callback now.
+ return time_now;
}
return time_now + interval;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698