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

Unified Diff: webrtc/video/rtp_video_stream_receiver.h

Issue 2974453002: Protected streams report RTP messages directly to the FlexFec streams (Closed)
Patch Set: CR response Created 3 years, 5 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/video/rtp_video_stream_receiver.h
diff --git a/webrtc/video/rtp_video_stream_receiver.h b/webrtc/video/rtp_video_stream_receiver.h
index afcc696da16e78abdfe3a0729cca448d25c5aee7..a7e1a69637c1cf11abb141d708c12d6b7a291b8b 100644
--- a/webrtc/video/rtp_video_stream_receiver.h
+++ b/webrtc/video/rtp_video_stream_receiver.h
@@ -142,6 +142,9 @@ class RtpVideoStreamReceiver : public RtpData,
rtc::Optional<int64_t> LastReceivedPacketMs() const;
rtc::Optional<int64_t> LastReceivedKeyframePacketMs() const;
+ void AddSecondarySink(RtpPacketSinkInterface* sink);
+ void RemoveSecondarySink(const RtpPacketSinkInterface* sink);
+
private:
bool AddReceiveCodec(const VideoCodec& video_codec);
void ReceivePacket(const uint8_t* packet,
@@ -201,6 +204,8 @@ class RtpVideoStreamReceiver : public RtpData,
int16_t last_payload_type_ = -1;
bool has_received_frame_;
+
+ std::vector<RtpPacketSinkInterface*> secondary_sinks_;
};
} // namespace webrtc

Powered by Google App Engine
This is Rietveld 408576698