diff options
author | ronghuawu@chromium.org <ronghuawu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-12-17 02:02:54 +0000 |
---|---|---|
committer | ronghuawu@chromium.org <ronghuawu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-12-17 02:02:54 +0000 |
commit | 863369f78d9c2b4f774e693fdef8943deba270fa (patch) | |
tree | eb26aa6471148152a16a9ecf2950d2dcd76bc5ff | |
parent | 2c30adb144694822d2eeec760e7874262c82028a (diff) | |
download | chromium_src-863369f78d9c2b4f774e693fdef8943deba270fa.zip chromium_src-863369f78d9c2b4f774e693fdef8943deba270fa.tar.gz chromium_src-863369f78d9c2b4f774e693fdef8943deba270fa.tar.bz2 |
Update webrtc/libjingle 5268:5301.
R=grunell@chromium.org, mallinath@chromium.org, sergeyu@chromium.org, wjia@chromium.org
Review URL: https://codereview.chromium.org/103143004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@241095 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | DEPS | 2 | ||||
-rw-r--r-- | content/renderer/media/media_stream_audio_processor.cc | 7 | ||||
-rw-r--r-- | content/renderer/media/media_stream_dependency_factory.cc | 2 | ||||
-rw-r--r-- | content/renderer/p2p/ipc_socket_factory.cc | 6 | ||||
-rw-r--r-- | jingle/glue/channel_socket_adapter.cc | 1 | ||||
-rw-r--r-- | jingle/glue/channel_socket_adapter.h | 2 | ||||
-rw-r--r-- | jingle/glue/channel_socket_adapter_unittest.cc | 3 | ||||
-rw-r--r-- | jingle/glue/fake_socket_factory.cc | 4 | ||||
-rw-r--r-- | remoting/client/plugin/pepper_packet_socket_factory.cc | 3 | ||||
-rw-r--r-- | remoting/jingle_glue/chromium_socket_factory.cc | 3 | ||||
-rw-r--r-- | remoting/jingle_glue/chromium_socket_factory_unittest.cc | 3 | ||||
-rw-r--r-- | third_party/libjingle/README.chromium | 2 |
12 files changed, 19 insertions, 19 deletions
@@ -50,7 +50,7 @@ vars = { # Three lines of non-changing comments so that # the commit queue can handle CLs rolling WebRTC # and V8 without interference from each other. - "webrtc_revision": "5268", + "webrtc_revision": "5301", "jsoncpp_revision": "248", "nss_revision": "239365", # Three lines of non-changing comments so that diff --git a/content/renderer/media/media_stream_audio_processor.cc b/content/renderer/media/media_stream_audio_processor.cc index 07974aa..98439c7 100644 --- a/content/renderer/media/media_stream_audio_processor.cc +++ b/content/renderer/media/media_stream_audio_processor.cc @@ -233,8 +233,6 @@ void MediaStreamAudioProcessor::InitializeAudioProcessingModule( constraints, MediaConstraintsInterface::kNoiseSuppression); const bool enable_high_pass_filter = GetPropertyFromConstraints( constraints, MediaConstraintsInterface::kHighpassFilter); - const bool start_aec_dump = GetPropertyFromConstraints( - constraints, MediaConstraintsInterface::kInternalAecDump); #if defined(IOS) || defined(ANDROID) const bool enable_experimental_aec = false; const bool enable_typing_detection = false; @@ -270,8 +268,6 @@ void MediaStreamAudioProcessor::InitializeAudioProcessingModule( if (enable_typing_detection) EnableTypingDetection(audio_processing_.get()); - if (enable_aec && start_aec_dump) - StartAecDump(audio_processing_.get()); // Configure the audio format the audio processing is running on. This // has to be done after all the needed components are enabled. @@ -352,9 +348,6 @@ void MediaStreamAudioProcessor::StopAudioProcessing() { if (!audio_processing_.get()) return; - // It is safe to stop the AEC dump even it is not started. - StopAecDump(audio_processing_.get()); - audio_processing_.reset(); } diff --git a/content/renderer/media/media_stream_dependency_factory.cc b/content/renderer/media/media_stream_dependency_factory.cc index 8da7b14..d197b5d 100644 --- a/content/renderer/media/media_stream_dependency_factory.cc +++ b/content/renderer/media/media_stream_dependency_factory.cc @@ -660,8 +660,6 @@ bool MediaStreamDependencyFactory::CreatePeerConnectionFactory() { audio_device_ = audio_device; pc_factory_ = factory; webrtc::PeerConnectionFactoryInterface::Options factory_options; - factory_options.enable_aec_dump = - cmd_line->HasSwitch(switches::kEnableWebRtcAecRecordings); factory_options.disable_sctp_data_channels = cmd_line->HasSwitch(switches::kDisableSCTPDataChannels); factory_options.disable_encryption = diff --git a/content/renderer/p2p/ipc_socket_factory.cc b/content/renderer/p2p/ipc_socket_factory.cc index f2d1fe9..04825c3 100644 --- a/content/renderer/p2p/ipc_socket_factory.cc +++ b/content/renderer/p2p/ipc_socket_factory.cc @@ -394,9 +394,9 @@ void IpcPacketSocket::OnDataReceived(const net::IPEndPoint& address, return; } - // TODO(mallinath) - Pass timestamp after updating the libjingle. - // talk_base::PacketTime packet_time(timestamp.ToInternalValue(), 0); - SignalReadPacket(this, &data[0], data.size(), address_lj); + talk_base::PacketTime packet_time(timestamp.ToInternalValue(), 0); + SignalReadPacket(this, &data[0], data.size(), address_lj, + packet_time); } } // namespace diff --git a/jingle/glue/channel_socket_adapter.cc b/jingle/glue/channel_socket_adapter.cc index 27f0080..c9cfff1 100644 --- a/jingle/glue/channel_socket_adapter.cc +++ b/jingle/glue/channel_socket_adapter.cc @@ -140,6 +140,7 @@ void TransportChannelSocketAdapter::OnNewPacket( cricket::TransportChannel* channel, const char* data, size_t data_size, + const talk_base::PacketTime& packet_time, int flags) { DCHECK_EQ(base::MessageLoop::current(), message_loop_); DCHECK_EQ(channel, channel_); diff --git a/jingle/glue/channel_socket_adapter.h b/jingle/glue/channel_socket_adapter.h index baf4d4c..35414a1 100644 --- a/jingle/glue/channel_socket_adapter.h +++ b/jingle/glue/channel_socket_adapter.h @@ -8,6 +8,7 @@ #include "base/callback_forward.h" #include "base/compiler_specific.h" #include "net/socket/socket.h" +#include "third_party/libjingle/source/talk/base/asyncpacketsocket.h" #include "third_party/libjingle/source/talk/base/socketaddress.h" #include "third_party/libjingle/source/talk/base/sigslot.h" @@ -54,6 +55,7 @@ class TransportChannelSocketAdapter : public net::Socket, void OnNewPacket(cricket::TransportChannel* channel, const char* data, size_t data_size, + const talk_base::PacketTime& packet_time, int flags); void OnWritableState(cricket::TransportChannel* channel); void OnChannelDestroyed(cricket::TransportChannel* channel); diff --git a/jingle/glue/channel_socket_adapter_unittest.cc b/jingle/glue/channel_socket_adapter_unittest.cc index 6a89a43..7fcb5d1 100644 --- a/jingle/glue/channel_socket_adapter_unittest.cc +++ b/jingle/glue/channel_socket_adapter_unittest.cc @@ -88,7 +88,8 @@ TEST_F(TransportChannelSocketAdapterTest, Read) { int result = target_->Read(buffer.get(), kBufferSize, callback_); ASSERT_EQ(net::ERR_IO_PENDING, result); - channel_.SignalReadPacket(&channel_, kTestData, kTestDataSize, 0); + channel_.SignalReadPacket(&channel_, kTestData, kTestDataSize, + talk_base::CreatePacketTime(0), 0); EXPECT_EQ(kTestDataSize, callback_result_); } diff --git a/jingle/glue/fake_socket_factory.cc b/jingle/glue/fake_socket_factory.cc index 823367f..38472c6 100644 --- a/jingle/glue/fake_socket_factory.cc +++ b/jingle/glue/fake_socket_factory.cc @@ -7,6 +7,7 @@ #include "base/bind.h" #include "base/message_loop/message_loop.h" #include "jingle/glue/utils.h" +#include "third_party/libjingle/source/talk/base/asyncpacketsocket.h" #include "third_party/libjingle/source/talk/base/asyncsocket.h" namespace jingle_glue { @@ -113,7 +114,8 @@ void FakeUDPPacketSocket::DeliverPacket(const net::IPEndPoint& from, return; } - SignalReadPacket(this, &data[0], data.size(), address); + SignalReadPacket(this, &data[0], data.size(), address, + talk_base::CreatePacketTime(0)); } FakeSocketManager::FakeSocketManager() diff --git a/remoting/client/plugin/pepper_packet_socket_factory.cc b/remoting/client/plugin/pepper_packet_socket_factory.cc index a698479..ba738d6 100644 --- a/remoting/client/plugin/pepper_packet_socket_factory.cc +++ b/remoting/client/plugin/pepper_packet_socket_factory.cc @@ -328,7 +328,8 @@ void UdpPacketSocket::OnReadCompleted(int result, pp::NetAddress address) { if (result > 0) { talk_base::SocketAddress socket_address; PpNetAddressToSocketAddress(address, &socket_address); - SignalReadPacket(this, &receive_buffer_[0], result, socket_address); + SignalReadPacket(this, &receive_buffer_[0], result, socket_address, + talk_base::CreatePacketTime(0)); } else if (result != PP_ERROR_ABORTED) { LOG(ERROR) << "Received error when reading from UDP socket: " << result; } diff --git a/remoting/jingle_glue/chromium_socket_factory.cc b/remoting/jingle_glue/chromium_socket_factory.cc index cc599be..12e911c 100644 --- a/remoting/jingle_glue/chromium_socket_factory.cc +++ b/remoting/jingle_glue/chromium_socket_factory.cc @@ -350,7 +350,8 @@ void UdpPacketSocket::HandleReadResult(int result) { LOG(ERROR) << "Failed to convert address received from RecvFrom()."; return; } - SignalReadPacket(this, receive_buffer_->data(), result, address); + SignalReadPacket(this, receive_buffer_->data(), result, address, + talk_base::CreatePacketTime(0)); } else { LOG(ERROR) << "Received error when reading from UDP socket: " << result; } diff --git a/remoting/jingle_glue/chromium_socket_factory_unittest.cc b/remoting/jingle_glue/chromium_socket_factory_unittest.cc index 29375e7..621c6bb 100644 --- a/remoting/jingle_glue/chromium_socket_factory_unittest.cc +++ b/remoting/jingle_glue/chromium_socket_factory_unittest.cc @@ -29,7 +29,8 @@ class ChromiumSocketFactoryTest : public testing::Test, void OnPacket(talk_base::AsyncPacketSocket* socket, const char* data, size_t size, - const talk_base::SocketAddress& address) { + const talk_base::SocketAddress& address, + const talk_base::PacketTime& packet_time) { EXPECT_EQ(socket, socket_.get()); last_packet_.assign(data, data + size); last_address_ = address; diff --git a/third_party/libjingle/README.chromium b/third_party/libjingle/README.chromium index 1c17f25..f6b4983 100644 --- a/third_party/libjingle/README.chromium +++ b/third_party/libjingle/README.chromium @@ -1,7 +1,7 @@ Name: libjingle URL: http://code.google.com/p/webrtc/ Version: unknown -Revision: 5268 +Revision: 5301 License: BSD License File: source/talk/COPYING Security Critical: yes |