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

Unified Diff: webrtc/call/flexfec_receive_stream_impl.cc

Issue 2709723003: Initial implementation of RtpTransportControllerReceive and related interfaces.
Patch Set: Rename foo_audio --> audio_foo. Created 3 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
« no previous file with comments | « webrtc/call/flexfec_receive_stream_impl.h ('k') | webrtc/call/rtp_transport_controller_receive.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/call/flexfec_receive_stream_impl.cc
diff --git a/webrtc/call/flexfec_receive_stream_impl.cc b/webrtc/call/flexfec_receive_stream_impl.cc
index f01043349892574f5d240cacd27583173c68ad71..28de0824e4bdce1e26c3a689e13159e112a98aa7 100644
--- a/webrtc/call/flexfec_receive_stream_impl.cc
+++ b/webrtc/call/flexfec_receive_stream_impl.cc
@@ -127,6 +127,7 @@ FlexfecReceiveStreamImpl::FlexfecReceiveStreamImpl(
RtcpRttStats* rtt_stats,
ProcessThread* process_thread)
: config_(config),
+ rtp_header_extensions_(config.rtp_header_extensions),
started_(false),
receiver_(MaybeCreateFlexfecReceiver(config_, recovered_packet_receiver)),
rtp_receive_statistics_(
@@ -149,6 +150,12 @@ FlexfecReceiveStreamImpl::~FlexfecReceiveStreamImpl() {
process_thread_->DeRegisterModule(rtp_rtcp_.get());
}
+bool FlexfecReceiveStreamImpl::OnRtpPacketReceive(RtpPacketReceived* packet) {
+ packet->IdentifyExtensions(rtp_header_extensions_);
+ OnRtpPacket(*packet);
+ return true;
+}
+
void FlexfecReceiveStreamImpl::OnRtpPacket(const RtpPacketReceived& packet) {
{
rtc::CritScope cs(&crit_);
« no previous file with comments | « webrtc/call/flexfec_receive_stream_impl.h ('k') | webrtc/call/rtp_transport_controller_receive.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698