Index: webrtc/api/peerconnectionfactory.cc |
diff --git a/webrtc/api/peerconnectionfactory.cc b/webrtc/api/peerconnectionfactory.cc |
index c3c120ce7a691799f35eb5e28c1d3fd8b636e971..8e1ece6c657b67866370ab3be8d7a8b134ff00cb 100644 |
--- a/webrtc/api/peerconnectionfactory.cc |
+++ b/webrtc/api/peerconnectionfactory.cc |
@@ -286,24 +286,8 @@ PeerConnectionFactory::CreatePeerConnection( |
rtc::scoped_refptr<PeerConnection> pc( |
new rtc::RefCountedObject<PeerConnection>(this)); |
- // We rely on default values when constraints aren't found. |
- cricket::MediaConfig media_config; |
- media_config.video.disable_prerenderer_smoothing = |
- configuration.disable_prerenderer_smoothing; |
- if (configuration.enable_dscp) { |
- media_config.enable_dscp = *(configuration.enable_dscp); |
- } |
- if (configuration.cpu_overuse_detection) { |
- media_config.video.enable_cpu_overuse_detection = |
- *(configuration.cpu_overuse_detection); |
- } |
- if (configuration.suspend_below_min_bitrate) { |
- media_config.video.suspend_below_min_bitrate = |
- *(configuration.suspend_below_min_bitrate); |
- } |
- |
- if (!pc->Initialize(media_config, configuration, std::move(allocator), |
+ if (!pc->Initialize(configuration, std::move(allocator), |
std::move(dtls_identity_store), observer)) { |
return nullptr; |
} |