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

Unified Diff: webrtc/modules/rtp_rtcp/source/rtp_packet_history.h

Issue 1414563003: Remove time constraint on first retransmit of a packet. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Updated unit tests Created 5 years, 2 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
« no previous file with comments | « no previous file | webrtc/modules/rtp_rtcp/source/rtp_packet_history.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/modules/rtp_rtcp/source/rtp_packet_history.h
diff --git a/webrtc/modules/rtp_rtcp/source/rtp_packet_history.h b/webrtc/modules/rtp_rtcp/source/rtp_packet_history.h
index d12849438358d79eddc5e04dbd37433337e2fd18..e97d11eeaa52d6c650d5d83a141779e9cf80dba8 100644
--- a/webrtc/modules/rtp_rtcp/source/rtp_packet_history.h
+++ b/webrtc/modules/rtp_rtcp/source/rtp_packet_history.h
@@ -46,13 +46,12 @@ class RTPPacketHistory {
// The packet is copied to the buffer pointed to by ptr_rtp_packet.
// The rtp_packet_length should show the available buffer size.
// Returns true if packet is found.
- // rtp_packet_length: returns the copied packet length on success.
+ // packet_length: returns the copied packet length on success.
// min_elapsed_time_ms: the minimum time that must have elapsed since the last
// time the packet was resent (parameter is ignored if set to zero).
- // If the packet is found but the minimum time has not elaped, no bytes are
+ // If the packet is found but the minimum time has not elapsed, no bytes are
// copied.
// stored_time_ms: returns the time when the packet was stored.
- // type: returns the storage type set in PutRTPPacket.
bool GetPacketAndSetSendTime(uint16_t sequence_number,
int64_t min_elapsed_time_ms,
bool retransmit,
@@ -94,6 +93,7 @@ class RTPPacketHistory {
int64_t time_ms = 0;
int64_t send_time = 0;
StorageType storage_type = kDontRetransmit;
+ bool has_been_retransmitted = false;
uint8_t data[IP_PACKET_SIZE];
size_t length = 0;
« no previous file with comments | « no previous file | webrtc/modules/rtp_rtcp/source/rtp_packet_history.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698