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

Unified Diff: webrtc/pc/mediasession.cc

Issue 2224563004: Add signaling to support ICE renomination. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Merge Created 4 years, 4 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/pc/mediasession.h ('k') | webrtc/pc/mediasession_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/pc/mediasession.cc
diff --git a/webrtc/pc/mediasession.cc b/webrtc/pc/mediasession.cc
index 65fe363f8e10c36cae865ba4eb2d9efb9731c056..bfb5692f0fd7868cd3f7755eb7b44e0664a47e7c 100644
--- a/webrtc/pc/mediasession.cc
+++ b/webrtc/pc/mediasession.cc
@@ -686,11 +686,13 @@ static bool IsRtxCodec(const C& codec) {
static TransportOptions GetTransportOptions(const MediaSessionOptions& options,
const std::string& content_name) {
+ TransportOptions transport_options;
auto it = options.transport_options.find(content_name);
- if (it == options.transport_options.end()) {
- return TransportOptions();
+ if (it != options.transport_options.end()) {
+ transport_options = it->second;
}
- return it->second;
+ transport_options.enable_ice_renomination = options.enable_ice_renomination;
+ return transport_options;
}
// Create a media content to be offered in a session-initiate,
« no previous file with comments | « webrtc/pc/mediasession.h ('k') | webrtc/pc/mediasession_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698