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

Unified Diff: content/browser/renderer_host/p2p/socket_host_udp.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: 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_udp.cc
diff --git a/content/browser/renderer_host/p2p/socket_host_udp.cc b/content/browser/renderer_host/p2p/socket_host_udp.cc
index 8303d2bcdba1acb25b5e740e5db8014ae26d1478..fc27b2673183bf99b057850899870a01ba701f4c 100644
--- a/content/browser/renderer_host/p2p/socket_host_udp.cc
+++ b/content/browser/renderer_host/p2p/socket_host_udp.cc
@@ -15,6 +15,7 @@
#include "net/base/io_buffer.h"
#include "net/base/net_errors.h"
#include "net/base/net_util.h"
+#include "third_party/libjingle/source/talk/base/asyncpacketsocket.h"
namespace {
@@ -63,11 +64,6 @@ P2PSocketHostUdp::PendingPacket::PendingPacket(
packet_options(options),
id(id) {
memcpy(data->data(), &content[0], size);
- if (!options.packet_time_params.srtp_auth_key.empty()) {
- memcpy(&packet_options.packet_time_params.srtp_auth_key[0],
- &options.packet_time_params.srtp_auth_key[0],
- options.packet_time_params.srtp_auth_key.size());
- }
}
P2PSocketHostUdp::PendingPacket::~PendingPacket() {
@@ -242,6 +238,8 @@ void P2PSocketHostUdp::DoSend(const PendingPacket& packet) {
last_dscp_ = net::DSCP_NO_CHANGE;
}
}
+ talk_base::PacketOptions options;
+ MaybeUpdatePacketAbsSendTimeExtn(packet.data->data(), packet.size, options);
int result = socket_->SendTo(
packet.data.get(),
packet.size,

Powered by Google App Engine
This is Rietveld 408576698