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

Unified Diff: webrtc/audio/audio_receive_stream.cc

Issue 1909333002: Switch voice transport to use Call and Stream instead of VoENetwork. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Remove VoENetwork from perf test. Created 4 years, 8 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: webrtc/audio/audio_receive_stream.cc
diff --git a/webrtc/audio/audio_receive_stream.cc b/webrtc/audio/audio_receive_stream.cc
index 9c253894719278a48b354763b4aef0a3235d0817..8d04f978d7d62fd19fc9f58f158cff9f2070cdf5 100644
--- a/webrtc/audio/audio_receive_stream.cc
+++ b/webrtc/audio/audio_receive_stream.cc
@@ -150,7 +150,8 @@ bool AudioReceiveStream::DeliverRtcp(const uint8_t* packet, size_t length) {
// calls on the worker thread. We should move towards always using a network
// thread. Then this check can be enabled.
// RTC_DCHECK(!thread_checker_.CalledOnValidThread());
- return false;
+ return channel_proxy_->ReceivedRTCPPacket(static_cast<const uint8_t*>(packet),
the sun 2016/04/22 12:40:31 Looks like this cast is not needed anymore?
mflodman 2016/04/27 13:42:17 Doh!
+ length) == 0;
}
bool AudioReceiveStream::DeliverRtp(const uint8_t* packet,
@@ -177,7 +178,8 @@ bool AudioReceiveStream::DeliverRtp(const uint8_t* packet,
remote_bitrate_estimator_->IncomingPacket(arrival_time_ms, payload_size,
the sun 2016/04/22 12:40:31 stefan: is it still appropriate to fork packets of
mflodman 2016/04/27 13:42:17 For video this is done in ViEReciever, that we're
the sun 2016/04/28 09:15:56 ok, just wanted to make sure we won't magically se
stefan-webrtc 2016/04/28 09:27:48 Should be fine, and I also prefer it being done th
header, false);
}
- return true;
+
+ return channel_proxy_->ReceivedRTPPacket(packet, length, packet_time);
the sun 2016/04/22 12:40:31 VoE::ReceivedRTPPacket() will: if ((length < 12)
mflodman 2016/04/27 13:42:17 Channel::ReceivedRTPPacket is calling rtp_header_p
the sun 2016/04/28 09:15:56 Yes, please add the check in Channel::ReceivedRTPP
}
webrtc::AudioReceiveStream::Stats AudioReceiveStream::GetStats() const {
« no previous file with comments | « no previous file | webrtc/audio/audio_receive_stream_unittest.cc » ('j') | webrtc/audio/audio_receive_stream_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698