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

Unified Diff: webrtc/modules/video_coding/packet_buffer.h

Issue 2853503002: Dont request keyframes if the stream is inactive or if we are currently receiving a keyframe. (Closed)
Patch Set: Added EndToEndTest. Created 3 years, 7 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/modules/video_coding/packet_buffer.h
diff --git a/webrtc/modules/video_coding/packet_buffer.h b/webrtc/modules/video_coding/packet_buffer.h
index 001f8bd89de928bb31a14c490a2efe5df3fd8c7a..3d9eb9cb421515aeb4a8f48b13cecf8699b2817a 100644
--- a/webrtc/modules/video_coding/packet_buffer.h
+++ b/webrtc/modules/video_coding/packet_buffer.h
@@ -55,6 +55,10 @@ class PacketBuffer {
void ClearTo(uint16_t seq_num);
void Clear();
+ // Timestamp (not RTP timestamp) of the last received packet/keyframe packet.
+ rtc::Optional<int64_t> LastReceivedPacketMs() const;
+ rtc::Optional<int64_t> LastReceivedKeyframePacketMs() const;
+
int AddRef() const;
int Release() const;
@@ -142,6 +146,10 @@ class PacketBuffer {
// Called when a received frame is found.
OnReceivedFrameCallback* const received_frame_callback_;
+ // Timestamp (not RTP timestamp) of the last received packet/keyframe packet.
+ rtc::Optional<int64_t> last_received_packet_ms_ GUARDED_BY(crit_);
+ rtc::Optional<int64_t> last_received_keyframe_packet_ms_ GUARDED_BY(crit_);
+
mutable volatile int ref_count_ = 0;
};
« no previous file with comments | « no previous file | webrtc/modules/video_coding/packet_buffer.cc » ('j') | webrtc/modules/video_coding/packet_buffer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698