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

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

Issue 25544003: Fix code style and gyp files in cast to build cast_unittest (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed gyp files 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 | « media/cast/pacing/mock_packet_sender.cc ('k') | media/cast/pacing/paced_sender.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cast/pacing/paced_sender.cc
diff --git a/media/cast/pacing/paced_sender.cc b/media/cast/pacing/paced_sender.cc
index d2935f3e65a8bd9a7708ee854b6b18a172f59bc8..28f5131461a42ec04264798538960ffb47fdf991 100644
--- a/media/cast/pacing/paced_sender.cc
+++ b/media/cast/pacing/paced_sender.cc
@@ -42,7 +42,7 @@ bool PacedSender::SendPacket(const std::vector<uint8>& packet,
return true;
}
++packets_sent_in_burst_;
- return transport_->SendPacket(&(packet[0]), packet.size());
+ return transport_->SendPacket(packet);
}
bool PacedSender::ResendPacket(const std::vector<uint8>& packet,
@@ -60,12 +60,12 @@ bool PacedSender::ResendPacket(const std::vector<uint8>& packet,
return true;
}
++packets_sent_in_burst_;
- return transport_->SendPacket(&(packet[0]), packet.size());
+ return transport_->SendPacket(packet);
}
bool PacedSender::SendRtcpPacket(const std::vector<uint8>& packet) {
// We pass the RTCP packets straight through.
- return transport_->SendPacket(&(packet[0]), packet.size());
+ return transport_->SendPacket(packet);
}
void PacedSender::ScheduleNextSend() {
@@ -95,11 +95,11 @@ void PacedSender::SendStoredPacket() {
if (!resend_packet_list_.empty()) {
// Send our re-send packets first.
const std::vector<uint8>& packet = resend_packet_list_.front();
- transport_->SendPacket(&(packet[0]), packet.size());
+ transport_->SendPacket(packet);
resend_packet_list_.pop_front();
} else {
const std::vector<uint8>& packet = packet_list_.front();
- transport_->SendPacket(&(packet[0]), packet.size());
+ transport_->SendPacket(packet);
packet_list_.pop_front();
if (packet_list_.empty()) {
« no previous file with comments | « media/cast/pacing/mock_packet_sender.cc ('k') | media/cast/pacing/paced_sender.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698