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

Unified Diff: webrtc/api/rtcstatscollector.cc

Issue 2564333002: Reland of: Separating SCTP code from BaseChannel/MediaChannel. (Closed)
Patch Set: Merge with master. Created 3 years, 11 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/peerconnectioninterface_unittest.cc ('k') | webrtc/api/test/mock_webrtcsession.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/api/rtcstatscollector.cc
diff --git a/webrtc/api/rtcstatscollector.cc b/webrtc/api/rtcstatscollector.cc
index 3ab7ac94e1e12429a423d05d7180da4f84fdbef3..dc14970854f0e8ffa10894f019cedfd25d5e7448 100644
--- a/webrtc/api/rtcstatscollector.cc
+++ b/webrtc/api/rtcstatscollector.cc
@@ -463,10 +463,16 @@ void RTCStatsCollector::GetStatsReport(
ChannelNamePair(pc_->session()->video_channel()->content_name(),
pc_->session()->video_channel()->transport_name()));
}
- if (pc_->session()->data_channel()) {
+ if (pc_->session()->rtp_data_channel()) {
+ channel_name_pairs_->data =
+ rtc::Optional<ChannelNamePair>(ChannelNamePair(
+ pc_->session()->rtp_data_channel()->content_name(),
+ pc_->session()->rtp_data_channel()->transport_name()));
+ }
+ if (pc_->session()->sctp_content_name()) {
channel_name_pairs_->data = rtc::Optional<ChannelNamePair>(
- ChannelNamePair(pc_->session()->data_channel()->content_name(),
- pc_->session()->data_channel()->transport_name()));
+ ChannelNamePair(*pc_->session()->sctp_content_name(),
+ *pc_->session()->sctp_transport_name()));
}
media_info_.reset(PrepareMediaInfo_s().release());
« no previous file with comments | « webrtc/api/peerconnectioninterface_unittest.cc ('k') | webrtc/api/test/mock_webrtcsession.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698