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:
parent
2e402ce873
commit
6eb53f71d6
@ -260,13 +260,12 @@ int32_t PacedSender::Process() {
|
|||||||
|
|
||||||
const bool success = callback_->TimeToSendPacket(ssrc, sequence_number,
|
const bool success = callback_->TimeToSendPacket(ssrc, sequence_number,
|
||||||
capture_time_ms);
|
capture_time_ms);
|
||||||
|
critsect_->Enter();
|
||||||
// If packet cannt be sent then keep it in packet list and exit early.
|
// If packet cannt be sent then keep it in packet list and exit early.
|
||||||
// There's no need to send more packets.
|
// There's no need to send more packets.
|
||||||
if (!success) {
|
if (!success) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
critsect_->Enter();
|
|
||||||
packet_list->pop_front();
|
packet_list->pop_front();
|
||||||
const bool last_packet = packet_list->empty() ||
|
const bool last_packet = packet_list->empty() ||
|
||||||
packet_list->front().capture_time_ms_ > capture_time_ms;
|
packet_list->front().capture_time_ms_ > capture_time_ms;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user