diff --git a/talk/media/webrtc/webrtcvideoengine2.cc b/talk/media/webrtc/webrtcvideoengine2.cc index 953257fa69..b2e0941279 100644 --- a/talk/media/webrtc/webrtcvideoengine2.cc +++ b/talk/media/webrtc/webrtcvideoengine2.cc @@ -641,7 +641,7 @@ WebRtcVideoChannel2::WebRtcVideoChannel2( } void WebRtcVideoChannel2::SetDefaultOptions() { - options_.cpu_overuse_detection.Set(false); + options_.cpu_overuse_detection.Set(true); options_.dscp.Set(false); options_.suspend_below_min_bitrate.Set(false); options_.video_noise_reduction.Set(true); diff --git a/talk/media/webrtc/webrtcvideoengine2_unittest.cc b/talk/media/webrtc/webrtcvideoengine2_unittest.cc index aabefd6beb..7add66c13d 100644 --- a/talk/media/webrtc/webrtcvideoengine2_unittest.cc +++ b/talk/media/webrtc/webrtcvideoengine2_unittest.cc @@ -1732,9 +1732,9 @@ void WebRtcVideoChannel2Test::TestCpuAdaptation(bool enable_overuse) { codecs.push_back(codec); EXPECT_TRUE(channel_->SetSendCodecs(codecs)); - if (enable_overuse) { + if (!enable_overuse) { VideoOptions options; - options.cpu_overuse_detection.Set(true); + options.cpu_overuse_detection.Set(false); channel_->SetOptions(options); }