Index: content/renderer/media/rtc_peer_connection_handler.cc |
diff --git a/content/renderer/media/rtc_peer_connection_handler.cc b/content/renderer/media/rtc_peer_connection_handler.cc |
index 626e5c91eb70f8eac21a3230002662126aa386f1..a05648ab1161b1265b2f4a6d934933d47f0d45e7 100644 |
--- a/content/renderer/media/rtc_peer_connection_handler.cc |
+++ b/content/renderer/media/rtc_peer_connection_handler.cc |
@@ -185,8 +185,17 @@ void GetSdpAndTypeFromSessionDescription( |
void GetNativeRtcConfiguration( |
const blink::WebRTCConfiguration& blink_config, |
webrtc::PeerConnectionInterface::RTCConfiguration* webrtc_config) { |
- if (blink_config.isNull() || !webrtc_config) |
+ if (!webrtc_config) |
return; |
+ |
+ // When we don't have WebRTCConfiguration, treat it as a special case where we |
+ // should generate local host candidate. This will only be honored if |
+ // enable_multiple_routes is disabled. |
+ if (blink_config.isNull()) { |
+ webrtc_config->enable_localhost_ice_candidate = true; |
juberti1
2015/08/26 22:49:45
I think we might also want this when iceServers is
|
+ return; |
+ } |
+ |
for (size_t i = 0; i < blink_config.numberOfServers(); ++i) { |
webrtc::PeerConnectionInterface::IceServer server; |
const blink::WebRTCICEServer& webkit_server = |