Add support for deferred sequence numbering.
With this turned on, packets will be sequence number after the pacing stage rather that during packetization. This avoids a race where packets may be sent out of order, and paves the way for the ability to cull packets from the pacer queue without causing sequence number gaps. For now, the feature is off by default. Follow-ups will enable it for video and audio separately. Bug: webrtc:11340, webrtc:12470 Change-Id: I6d411d8c85b9047e3e9b05ff4c2c3ed97c579aa1 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/208584 Commit-Queue: Erik Språng <sprang@webrtc.org> Reviewed-by: Danil Chapovalov <danilchap@webrtc.org> Cr-Commit-Position: refs/heads/master@{#34661}
This commit is contained in:
committed by
WebRTC LUCI CQ
parent
82c2248511
commit
bb90497eaa
@ -77,7 +77,7 @@ void PacketSequencer::SetRtpState(const RtpState& state) {
|
||||
last_timestamp_time_ms_ = state.last_timestamp_time_ms;
|
||||
}
|
||||
|
||||
void PacketSequencer::PupulateRtpState(RtpState& state) const {
|
||||
void PacketSequencer::PopulateRtpState(RtpState& state) const {
|
||||
state.sequence_number = media_sequence_number_;
|
||||
state.timestamp = last_rtp_timestamp_;
|
||||
state.capture_time_ms = last_capture_time_ms_;
|
||||
|
||||
Reference in New Issue
Block a user