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

Unified Diff: webrtc/call/flexfec_receive_stream_impl.h

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.h
diff --git a/webrtc/call/flexfec_receive_stream_impl.h b/webrtc/call/flexfec_receive_stream_impl.h
index 36ea623c2e49e7b429991eb45c5150734091a7b1..fa09df0f1ff26497c71f8fadd473cd2abca8f899 100644
--- a/webrtc/call/flexfec_receive_stream_impl.h
+++ b/webrtc/call/flexfec_receive_stream_impl.h
@@ -15,6 +15,7 @@
#include "webrtc/base/criticalsection.h"
#include "webrtc/call/flexfec_receive_stream.h"
+#include "webrtc/call/rtp_packet_receiver.h"
namespace webrtc {
@@ -26,7 +27,9 @@ class RtcpRttStats;
class RtpPacketReceived;
class RtpRtcp;
-class FlexfecReceiveStreamImpl : public FlexfecReceiveStream {
+class FlexfecReceiveStreamImpl
+ : public FlexfecReceiveStream,
+ public RtpPacketReceiver {
public:
FlexfecReceiveStreamImpl(const Config& config,
RecoveredPacketReceiver* recovered_packet_receiver,
@@ -36,7 +39,9 @@ class FlexfecReceiveStreamImpl : public FlexfecReceiveStream {
const Config& GetConfig() const { return config_; }
- bool AddAndProcessReceivedPacket(const RtpPacketReceived& packet);
+ // Implements RtpPacketReceiver
+ bool OnRtpPacket(const RtpPacketReceived& packet) override;
+ const RtpConfig& rtp_config() const override;
// Implements FlexfecReceiveStream.
void Start() override;
@@ -46,6 +51,7 @@ class FlexfecReceiveStreamImpl : public FlexfecReceiveStream {
private:
// Config.
const Config config_;
+ const RtpConfig rtp_config_;
brandtr 2017/02/09 14:51:55 The information in |rtp_config_| is completely bas
nisse-webrtc 2017/02/09 16:20:48 I agree. Main show stopper at the moment is the di
bool started_ GUARDED_BY(crit_);
rtc::CriticalSection crit_;

Powered by Google App Engine
This is Rietveld 408576698