| Index: webrtc/pc/mediamonitor.cc
|
| diff --git a/webrtc/pc/mediamonitor.cc b/webrtc/pc/mediamonitor.cc
|
| index 5ed68fa085e2f40e22b21206c5343388dc79fb58..c98522730e8494741ae16c89345745b13cb179f7 100644
|
| --- a/webrtc/pc/mediamonitor.cc
|
| +++ b/webrtc/pc/mediamonitor.cc
|
| @@ -8,6 +8,7 @@
|
| * be found in the AUTHORS file in the root of the source tree.
|
| */
|
|
|
| +#include "webrtc/base/checks.h"
|
| #include "webrtc/base/common.h"
|
| #include "webrtc/pc/channelmanager.h"
|
| #include "webrtc/pc/mediamonitor.h"
|
| @@ -50,7 +51,7 @@ void MediaMonitor::OnMessage(rtc::Message* message) {
|
|
|
| switch (message->message_id) {
|
| case MSG_MONITOR_START:
|
| - ASSERT(rtc::Thread::Current() == worker_thread_);
|
| + RTC_DCHECK(rtc::Thread::Current() == worker_thread_);
|
| if (!monitoring_) {
|
| monitoring_ = true;
|
| PollMediaChannel();
|
| @@ -58,7 +59,7 @@ void MediaMonitor::OnMessage(rtc::Message* message) {
|
| break;
|
|
|
| case MSG_MONITOR_STOP:
|
| - ASSERT(rtc::Thread::Current() == worker_thread_);
|
| + RTC_DCHECK(rtc::Thread::Current() == worker_thread_);
|
| if (monitoring_) {
|
| monitoring_ = false;
|
| worker_thread_->Clear(this);
|
| @@ -66,12 +67,12 @@ void MediaMonitor::OnMessage(rtc::Message* message) {
|
| break;
|
|
|
| case MSG_MONITOR_POLL:
|
| - ASSERT(rtc::Thread::Current() == worker_thread_);
|
| + RTC_DCHECK(rtc::Thread::Current() == worker_thread_);
|
| PollMediaChannel();
|
| break;
|
|
|
| case MSG_MONITOR_SIGNAL:
|
| - ASSERT(rtc::Thread::Current() == monitor_thread_);
|
| + RTC_DCHECK(rtc::Thread::Current() == monitor_thread_);
|
| Update();
|
| break;
|
| }
|
| @@ -79,7 +80,7 @@ void MediaMonitor::OnMessage(rtc::Message* message) {
|
|
|
| void MediaMonitor::PollMediaChannel() {
|
| rtc::CritScope cs(&crit_);
|
| - ASSERT(rtc::Thread::Current() == worker_thread_);
|
| + RTC_DCHECK(rtc::Thread::Current() == worker_thread_);
|
|
|
| GetStats();
|
|
|
|
|