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

Unified Diff: webrtc/call/flexfec_receive_stream_impl.cc

Issue 2709723003: Initial implementation of RtpTransportControllerReceive and related interfaces.
Patch Set: Adapt Call to use the new RtpTransportReceive class. Created 3 years, 9 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/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 fcfb3ef7ae3f72aa84bf208ed8d8108d53fe7363..03df5f1f4583f8c9983a46b4f02169aa2cfad295 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_(
@@ -150,6 +151,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_);

Powered by Google App Engine
This is Rietveld 408576698