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

Unified Diff: webrtc/api/peerconnectionfactory.cc

Issue 1818033002: Embed a cricket::MediaConfig in RTCConfiguration. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Rebased. 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/peerconnection.cc ('k') | webrtc/api/peerconnectioninterface.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
« no previous file with comments | « webrtc/api/peerconnection.cc ('k') | webrtc/api/peerconnectioninterface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698