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

Unified Diff: webrtc/logging/rtc_event_log/rtc_event_log2text.cc

Issue 2857933002: Replace VideoSendStream::Config with new rtclog::StreamConfig in RtcEventLog. (Closed)
Patch Set: Rebased Created 3 years, 7 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/logging/rtc_event_log/rtc_event_log.cc ('k') | webrtc/logging/rtc_event_log/rtc_event_log_parser.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/logging/rtc_event_log/rtc_event_log2text.cc
diff --git a/webrtc/logging/rtc_event_log/rtc_event_log2text.cc b/webrtc/logging/rtc_event_log/rtc_event_log2text.cc
index 76fc95e1de3a1a9f85926336aa73661a88b864af..d2ee790944364aa9a468c0883cddb8d78048c7d0 100644
--- a/webrtc/logging/rtc_event_log/rtc_event_log2text.cc
+++ b/webrtc/logging/rtc_event_log/rtc_event_log2text.cc
@@ -382,26 +382,18 @@ int main(int argc, char* argv[]) {
}
if (parsed_stream.GetEventType(i) ==
webrtc::ParsedRtcEventLog::VIDEO_SENDER_CONFIG_EVENT) {
- webrtc::VideoSendStream::Config config(nullptr);
+ webrtc::rtclog::StreamConfig config;
parsed_stream.GetVideoSendConfig(i, &config);
+ global_streams.emplace_back(config.local_ssrc, webrtc::MediaType::VIDEO,
+ webrtc::kOutgoingPacket);
- for (uint32_t ssrc : config.rtp.ssrcs) {
- global_streams.emplace_back(ssrc, webrtc::MediaType::VIDEO,
- webrtc::kOutgoingPacket);
- }
- for (uint32_t ssrc : config.rtp.rtx.ssrcs) {
- global_streams.emplace_back(ssrc, webrtc::MediaType::VIDEO,
- webrtc::kOutgoingPacket);
- }
+ global_streams.emplace_back(config.rtx_ssrc, webrtc::MediaType::VIDEO,
+ webrtc::kOutgoingPacket);
if (!FLAGS_noconfig && !FLAGS_novideo && !FLAGS_nooutgoing) {
std::cout << parsed_stream.GetTimestamp(i) << "\tVIDEO_SEND_CONFIG";
- std::cout << "\tssrcs=";
- for (const auto& ssrc : config.rtp.ssrcs)
- std::cout << ssrc << ',';
- std::cout << "\trtx_ssrcs=";
- for (const auto& ssrc : config.rtp.rtx.ssrcs)
- std::cout << ssrc << ',';
+ std::cout << "\tssrcs=" << config.local_ssrc;
+ std::cout << "\trtx_ssrcs=" << config.rtx_ssrc;
std::cout << std::endl;
}
}
« no previous file with comments | « webrtc/logging/rtc_event_log/rtc_event_log.cc ('k') | webrtc/logging/rtc_event_log/rtc_event_log_parser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698