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:
@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user