Fix memory bot failure

Exit the method with critical setting held. This should make
the memory bot happy.

TBR=pwestin@webrtc.org

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

git-svn-id: http://webrtc.googlecode.com/svn/trunk@4251 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
hclam@chromium.org 2013-06-20 23:01:39 +00:00
parent 2e402ce873
commit 6eb53f71d6

View File

@ -260,13 +260,12 @@ int32_t PacedSender::Process() {
const bool success = callback_->TimeToSendPacket(ssrc, sequence_number,
capture_time_ms);
critsect_->Enter();
// If packet cannt be sent then keep it in packet list and exit early.
// There's no need to send more packets.
if (!success) {
return 0;
}
critsect_->Enter();
packet_list->pop_front();
const bool last_packet = packet_list->empty() ||
packet_list->front().capture_time_ms_ > capture_time_ms;