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

Unified Diff: webrtc/pc/audiomonitor.cc

Issue 2019423006: Adding more detail to MessageQueue::Dispatch logging. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 7 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/pc/audiomonitor.cc
diff --git a/webrtc/pc/audiomonitor.cc b/webrtc/pc/audiomonitor.cc
index 085ab931913c54e0d4a3f6212efb1dd2a818f4ad..513c63231413674d33c7c0f6045b7597634ea5f0 100644
--- a/webrtc/pc/audiomonitor.cc
+++ b/webrtc/pc/audiomonitor.cc
@@ -35,11 +35,11 @@ void AudioMonitor::Start(int milliseconds) {
rate_ = milliseconds;
if (rate_ < 100)
rate_ = 100;
- voice_channel_->worker_thread()->Post(this, MSG_MONITOR_START);
+ voice_channel_->worker_thread()->Post(FROM_HERE, this, MSG_MONITOR_START);
}
void AudioMonitor::Stop() {
- voice_channel_->worker_thread()->Post(this, MSG_MONITOR_STOP);
+ voice_channel_->worker_thread()->Post(FROM_HERE, this, MSG_MONITOR_STOP);
}
void AudioMonitor::OnMessage(rtc::Message *message) {
@@ -89,8 +89,9 @@ void AudioMonitor::PollVoiceChannel() {
voice_channel_->GetActiveStreams_w(&audio_info_.active_streams);
// Signal the monitoring thread, start another poll timer
- monitoring_thread_->Post(this, MSG_MONITOR_SIGNAL);
- voice_channel_->worker_thread()->PostDelayed(rate_, this, MSG_MONITOR_POLL);
+ monitoring_thread_->Post(FROM_HERE, this, MSG_MONITOR_SIGNAL);
+ voice_channel_->worker_thread()->PostDelayed(FROM_HERE, rate_, this,
+ MSG_MONITOR_POLL);
}
VoiceChannel *AudioMonitor::voice_channel() {

Powered by Google App Engine
This is Rietveld 408576698