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

Unified Diff: content/browser/renderer_host/p2p/socket_host_tcp.cc

Issue 159353002: This CL adds methods to manipulate RTP header extension, particularly (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Updating TS in SendTime extension header 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
Index: content/browser/renderer_host/p2p/socket_host_tcp.cc
diff --git a/content/browser/renderer_host/p2p/socket_host_tcp.cc b/content/browser/renderer_host/p2p/socket_host_tcp.cc
index b1cc79edf5cdd9c3072cb07736d83911c237f48f..4fd7a9864916e266d59c627c45a2f8734e93b23d 100644
--- a/content/browser/renderer_host/p2p/socket_host_tcp.cc
+++ b/content/browser/renderer_host/p2p/socket_host_tcp.cc
@@ -518,6 +518,7 @@ void P2PSocketHostStunTcp::DoSend(const net::IPEndPoint& to,
scoped_refptr<net::DrainableIOBuffer> buffer =
new net::DrainableIOBuffer(new net::IOBuffer(size), size);
memcpy(buffer->data(), &data[0], data.size());
+ MaybeUpdateRtpSendTimeExtn(&*data.begin(), data.size());
juberti2 2014/02/14 01:53:27 think you need to do this before the memcpy
Solis 2014/02/14 10:05:29 Avoid implicitly returning an iterator by using: &
if (pad_bytes) {
char padding[4] = {0};

Powered by Google App Engine
This is Rietveld 408576698