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

Unified Diff: webrtc/call/call.cc

Issue 1434263002: Re-add a thread check in Call::Call that was removed by mistake in a rebase. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: rebase Created 5 years, 1 month 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/call/call.cc
diff --git a/webrtc/call/call.cc b/webrtc/call/call.cc
index bdff1e70f3a8b40100c77f4f5bc1a92c34dcaf0f..34ecfc4f16ab4c112b11a3628e0ffcfb003e1200 100644
--- a/webrtc/call/call.cc
+++ b/webrtc/call/call.cc
@@ -174,6 +174,7 @@ Call::Call(const Call::Config& config)
received_audio_bytes_per_sec_(1000, 1),
received_rtcp_bytes_per_sec_(1000, 1),
first_rtp_packet_received_ms_(-1) {
+ RTC_DCHECK(configuration_thread_checker_.CalledOnValidThread());
RTC_DCHECK_GE(config.bitrate_config.min_bitrate_bps, 0);
RTC_DCHECK_GE(config.bitrate_config.start_bitrate_bps,
config.bitrate_config.min_bitrate_bps);
@@ -199,8 +200,8 @@ Call::Call(const Call::Config& config)
}
Call::~Call() {
- UpdateHistograms();
RTC_DCHECK(configuration_thread_checker_.CalledOnValidThread());
+ UpdateHistograms();
RTC_CHECK(audio_send_ssrcs_.empty());
RTC_CHECK(video_send_ssrcs_.empty());
RTC_CHECK(video_send_streams_.empty());
« 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