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()) { |