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

Unified Diff: media/cast/rtcp/rtcp.cc

Issue 102413014: Cast:Splitting rtcp sender (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years 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 | « media/cast/rtcp/rtcp.h ('k') | media/cast/rtcp/rtcp.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cast/rtcp/rtcp.cc
diff --git a/media/cast/rtcp/rtcp.cc b/media/cast/rtcp/rtcp.cc
index 3e9cdcc35aab87ab52a7c61552e886f06117bfe7..0809e81ae2aeacf9e453280f2f1615bd1a5a9b31 100644
--- a/media/cast/rtcp/rtcp.cc
+++ b/media/cast/rtcp/rtcp.cc
@@ -8,6 +8,7 @@
#include "media/cast/cast_config.h"
#include "media/cast/cast_defines.h"
#include "media/cast/cast_environment.h"
+#include "media/cast/net/rtcp/rtcp_builder.h"
#include "media/cast/rtcp/rtcp_defines.h"
#include "media/cast/rtcp/rtcp_receiver.h"
#include "media/cast/rtcp/rtcp_sender.h"
@@ -189,6 +190,7 @@ Rtcp::Rtcp(scoped_refptr<CastEnvironment> cast_environment,
rtt_feedback_(new LocalRtcpRttFeedback(this)),
rtcp_sender_(new RtcpSender(cast_environment, paced_packet_sender,
local_ssrc, c_name)),
+ rtcp_builder_(new RtcpBuilder(paced_packet_sender, local_ssrc, c_name)),
last_report_received_(0),
last_received_rtp_timestamp_(0),
last_received_ntp_seconds_(0),
@@ -336,10 +338,10 @@ void Rtcp::SendRtcpFromRtpSender(
dlrr.delay_since_last_rr = ConvertToNtpDiff(delay_seconds, delay_fraction);
}
- rtcp_sender_->SendRtcpFromRtpSender(packet_type_flags,
- &sender_info,
- &dlrr,
- sender_log_message);
+ rtcp_builder_->SendRtcpFromRtpSender(packet_type_flags,
+ &sender_info,
+ &dlrr,
+ sender_log_message);
UpdateNextTimeToSendRtcp();
}
« no previous file with comments | « media/cast/rtcp/rtcp.h ('k') | media/cast/rtcp/rtcp.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698