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

Unified Diff: webrtc/call/flexfec_receive_stream_impl.cc

Issue 2688473004: RtpPacketReceiver base class and OnRtpPacket, with a pre-parsed RTP packet. (Closed)
Patch Set: Created 3 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: 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 f5272c9029dd48f2e8ba77866a0df0c81fe81b1c..9e6fad1e535124c054203f5a89913a2acf90a476 100644
--- a/webrtc/call/flexfec_receive_stream_impl.cc
+++ b/webrtc/call/flexfec_receive_stream_impl.cc
@@ -126,6 +126,7 @@ FlexfecReceiveStreamImpl::FlexfecReceiveStreamImpl(
RtcpRttStats* rtt_stats,
ProcessThread* process_thread)
: config_(config),
+ rtp_config_(config.rtp_header_extensions, config.transport_cc),
started_(false),
receiver_(MaybeCreateFlexfecReceiver(config_, recovered_packet_receiver)),
rtp_receive_statistics_(
@@ -149,7 +150,7 @@ FlexfecReceiveStreamImpl::~FlexfecReceiveStreamImpl() {
process_thread_->DeRegisterModule(rtp_rtcp_.get());
}
-bool FlexfecReceiveStreamImpl::AddAndProcessReceivedPacket(
+bool FlexfecReceiveStreamImpl::OnRtpPacket(
const RtpPacketReceived& packet) {
{
rtc::CritScope cs(&crit_);
@@ -176,6 +177,11 @@ bool FlexfecReceiveStreamImpl::AddAndProcessReceivedPacket(
return true;
}
+const RtpPacketReceiver::RtpConfig&
+FlexfecReceiveStreamImpl::rtp_config() const {
+ return rtp_config_;
+}
+
void FlexfecReceiveStreamImpl::Start() {
rtc::CritScope cs(&crit_);
started_ = true;

Powered by Google App Engine
This is Rietveld 408576698