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

Unified Diff: trunk/src/media/cast/pacing/paced_sender.cc

Issue 25546003: Revert 226264 "Be able to build cast_unittest and related target..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 3 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 | « trunk/src/media/cast/pacing/mock_packet_sender.cc ('k') | trunk/src/media/cast/pacing/paced_sender.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/media/cast/pacing/paced_sender.cc
===================================================================
--- trunk/src/media/cast/pacing/paced_sender.cc (revision 226266)
+++ trunk/src/media/cast/pacing/paced_sender.cc (working copy)
@@ -42,7 +42,7 @@
return true;
}
++packets_sent_in_burst_;
- return transport_->SendPacket(packet);
+ return transport_->SendPacket(&(packet[0]), packet.size());
}
bool PacedSender::ResendPacket(const std::vector<uint8>& packet,
@@ -60,12 +60,12 @@
return true;
}
++packets_sent_in_burst_;
- return transport_->SendPacket(packet);
+ return transport_->SendPacket(&(packet[0]), packet.size());
}
bool PacedSender::SendRtcpPacket(const std::vector<uint8>& packet) {
// We pass the RTCP packets straight through.
- return transport_->SendPacket(packet);
+ return transport_->SendPacket(&(packet[0]), packet.size());
}
void PacedSender::ScheduleNextSend() {
@@ -95,11 +95,11 @@
if (!resend_packet_list_.empty()) {
// Send our re-send packets first.
const std::vector<uint8>& packet = resend_packet_list_.front();
- transport_->SendPacket(packet);
+ transport_->SendPacket(&(packet[0]), packet.size());
resend_packet_list_.pop_front();
} else {
const std::vector<uint8>& packet = packet_list_.front();
- transport_->SendPacket(packet);
+ transport_->SendPacket(&(packet[0]), packet.size());
packet_list_.pop_front();
if (packet_list_.empty()) {
« no previous file with comments | « trunk/src/media/cast/pacing/mock_packet_sender.cc ('k') | trunk/src/media/cast/pacing/paced_sender.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698