Don't print a warning if RTPPacketHistory::SetStorePacketStatus is called

twice with the same settings.

Without this change, setting up a call with the new video API will
print a trace warning.

R=stefan@webrtc.org

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

git-svn-id: http://webrtc.googlecode.com/svn/trunk@5566 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
mflodman@webrtc.org 2014-02-18 14:51:00 +00:00
parent 2086e0fbf3
commit c320027d6a

View File

@ -50,8 +50,11 @@ void RTPPacketHistory::Allocate(uint16_t number_to_store) {
assert(number_to_store > 0);
CriticalSectionScoped cs(critsect_);
if (store_) {
if (number_to_store != stored_packets_.size()) {
WEBRTC_TRACE(kTraceWarning, kTraceRtpRtcp, -1,
"SetStorePacketsStatus already set, number: %d", number_to_store);
"SetStorePacketsStatus already set, number: %d",
number_to_store);
}
return;
}