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

Unified Diff: webrtc/api/mediacontroller.cc

Issue 1888903003: Network thread (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: rebase Created 4 years, 8 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 | « webrtc/api/mediacontroller.h ('k') | webrtc/api/peerconnection.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/api/mediacontroller.cc
diff --git a/webrtc/api/mediacontroller.cc b/webrtc/api/mediacontroller.cc
index 2e4501b3f1bcdd3b2fd2f0c01429ede82c813e13..d5bbef54c4df1eabb2f36dc59336f610e3f2dce7 100644
--- a/webrtc/api/mediacontroller.cc
+++ b/webrtc/api/mediacontroller.cc
@@ -47,11 +47,8 @@ class MediaController : public webrtc::MediaControllerInterface,
void Close() override {
worker_thread_->Invoke<void>(rtc::Bind(&MediaController::Close_w, this));
}
- webrtc::Call* call_w() override {
- RTC_DCHECK(worker_thread_->IsCurrent());
- if (!call_) {
- call_.reset(webrtc::Call::Create(call_config_));
- }
+ webrtc::Call* call() override {
+ RTC_DCHECK(call_);
return call_.get();
}
cricket::ChannelManager* channel_manager() const override {
@@ -67,6 +64,7 @@ class MediaController : public webrtc::MediaControllerInterface,
call_config_.bitrate_config.min_bitrate_bps = kMinBandwidthBps;
call_config_.bitrate_config.start_bitrate_bps = kStartBandwidthBps;
call_config_.bitrate_config.max_bitrate_bps = kMaxBandwidthBps;
+ call_.reset(webrtc::Call::Create(call_config_));
}
void Close_w() {
RTC_DCHECK(worker_thread_->IsCurrent());
« no previous file with comments | « webrtc/api/mediacontroller.h ('k') | webrtc/api/peerconnection.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698