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

Unified Diff: media/cast/transport/transport/udp_transport.cc

Issue 147993010: Cast: end2end bug fixes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase + nits Created 6 years, 10 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/transport/rtp_sender/rtp_sender.cc ('k') | media/cast/video_receiver/video_receiver.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cast/transport/transport/udp_transport.cc
diff --git a/media/cast/transport/transport/udp_transport.cc b/media/cast/transport/transport/udp_transport.cc
index bf97c25e9b2706186bb4db03ffa5ff159adf91f6..fd86edcd8f6c8398d7fed0f29d25d64e67f5f0fc 100644
--- a/media/cast/transport/transport/udp_transport.cc
+++ b/media/cast/transport/transport/udp_transport.cc
@@ -129,7 +129,8 @@ bool UdpTransport::SendPacket(const Packet& packet) {
base::Bind(&UdpTransport::OnSent, weak_factory_.GetWeakPtr(), buf));
if (ret == net::ERR_IO_PENDING)
send_pending_ = true;
- return ret == net::OK;
+ // When ok, will return a positive value equal the number of bytes sent.
+ return ret >= net::OK;
}
void UdpTransport::OnSent(const scoped_refptr<net::IOBuffer>& buf, int result) {
« no previous file with comments | « media/cast/transport/rtp_sender/rtp_sender.cc ('k') | media/cast/video_receiver/video_receiver.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698