Index: webrtc/api/mediacontroller.cc |
diff --git a/webrtc/api/mediacontroller.cc b/webrtc/api/mediacontroller.cc |
index e688e39ea8bfac61629d5f26ad5a3ef9706fa32f..f6371cf358a71472fa787b289f2e48f7e5a179b4 100644 |
--- a/webrtc/api/mediacontroller.cc |
+++ b/webrtc/api/mediacontroller.cc |
@@ -30,10 +30,12 @@ class MediaController : public webrtc::MediaControllerInterface, |
public: |
MediaController(const cricket::MediaConfig& media_config, |
rtc::Thread* worker_thread, |
- cricket::ChannelManager* channel_manager) |
+ cricket::ChannelManager* channel_manager, |
+ webrtc::RtcEventLog* event_log) |
: worker_thread_(worker_thread), |
media_config_(media_config), |
- channel_manager_(channel_manager) { |
+ channel_manager_(channel_manager), |
+ event_log_(event_log) { |
RTC_DCHECK(worker_thread); |
worker_thread_->Invoke<void>(RTC_FROM_HERE, |
rtc::Bind(&MediaController::Construct_w, this, |
@@ -68,6 +70,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_config_.event_log = event_log_; |
} |
void Close_w() { |
RTC_DCHECK(worker_thread_->IsCurrent()); |
@@ -77,6 +80,7 @@ class MediaController : public webrtc::MediaControllerInterface, |
rtc::Thread* const worker_thread_; |
const cricket::MediaConfig media_config_; |
cricket::ChannelManager* const channel_manager_; |
+ webrtc::RtcEventLog* const event_log_; |
webrtc::Call::Config call_config_; |
std::unique_ptr<webrtc::Call> call_; |
@@ -89,7 +93,8 @@ namespace webrtc { |
MediaControllerInterface* MediaControllerInterface::Create( |
const cricket::MediaConfig& config, |
rtc::Thread* worker_thread, |
- cricket::ChannelManager* channel_manager) { |
- return new MediaController(config, worker_thread, channel_manager); |
+ cricket::ChannelManager* channel_manager, |
+ webrtc::RtcEventLog* event_log) { |
+ return new MediaController(config, worker_thread, channel_manager, event_log); |
} |
} // namespace webrtc |