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

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: . 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
Index: webrtc/pc/mediasession.cc
diff --git a/webrtc/pc/mediasession.cc b/webrtc/pc/mediasession.cc
index 28da7315dd7ae831034a477f507c208ed18685b1..d849abd7882b53bbd485dc07315d75b9278f6c17 100644
--- a/webrtc/pc/mediasession.cc
+++ b/webrtc/pc/mediasession.cc
@@ -722,11 +722,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.ice_renomination = options.ice_renomination;
skvlad 2016/08/26 23:59:10 Is options.ice_renomination always supposed to ove
honghaiz3 2016/08/29 18:52:52 Good point. I think that is the reason I have not
+ return transport_options;
}
// Create a media content to be offered in a session-initiate,

Powered by Google App Engine
This is Rietveld 408576698