Small refactor on ViE to remove redudant conditions and long ifdefs.

BUG=3694
R=stefan@webrtc.org

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

git-svn-id: http://webrtc.googlecode.com/svn/trunk@6905 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
andresp@webrtc.org
2014-08-14 16:46:46 +00:00
parent 2e186386d3
commit a84b0a6dab
3 changed files with 11 additions and 24 deletions

View File

@ -608,9 +608,7 @@ bool ModuleRtpRtcpImpl::TimeToSendPacket(uint32_t ssrc,
int ModuleRtpRtcpImpl::TimeToSendPadding(int bytes) {
if (!IsDefaultModule()) {
// Don't send from default module.
if (SendingMedia()) {
return rtp_sender_.TimeToSendPadding(bytes);
}
return rtp_sender_.TimeToSendPadding(bytes);
} else {
CriticalSectionScoped lock(critical_section_module_ptrs_.get());
for (size_t i = 0; i < child_modules_.size(); ++i) {