Chromium Code Reviews| 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}; |