Fixes some pacer/padding issues found while testing.

- A bug was introduced in r4234 causing no paced packets to be sent.
- Only update the sequence number counter if a padding packet is actually going to be sent, to avoid packet loss.
- Have all packets go through the pacer if pacing is enabled to avoid reordering.
- Fix race condition on reading capture_time_ms_/timestamp_ in rtp_sender.cc.

BUG=1837
TEST=trybots and vie_auto_test --automated
R=mflodman@webrtc.org

Review URL: https://webrtc-codereview.appspot.com/1682004

git-svn-id: http://webrtc.googlecode.com/svn/trunk@4246 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
stefan@webrtc.org
2013-06-19 14:13:42 +00:00
parent 2d7617afce
commit 8ccb9f9716
9 changed files with 218 additions and 159 deletions

View File

@@ -980,7 +980,7 @@ void ModuleRtpRtcpImpl::TimeToSendPacket(uint32_t ssrc,
bool no_child_modules = false;
{
CriticalSectionScoped lock(critical_section_module_ptrs_.get());
no_child_modules = !child_modules_.empty();
no_child_modules = child_modules_.empty();
}
if (no_child_modules) {
// Don't send from default module.