NetEq: Removing two asserts

These asserts cover error cases that are also handled by the code
after the assert. Should not have both assert and error handling.

BUG=webrtc:4840

Review URL: https://codereview.webrtc.org/1321023002

Cr-Commit-Position: refs/heads/master@{#9804}
This commit is contained in:
henrik.lundin
2015-08-28 01:12:21 -07:00
committed by Commit bot
parent 1e346b20c4
commit 98f3cc54da

View File

@ -712,7 +712,6 @@ int NetEqImpl::GetAudioInternal(size_t max_length,
int return_value = GetDecision(&operation, &packet_list, &dtmf_event,
&play_dtmf);
if (return_value != 0) {
assert(false);
last_mode_ = kModeError;
return return_value;
}
@ -980,7 +979,6 @@ int NetEqImpl::GetDecision(Operations* operation,
if (*play_dtmf && !header) {
timestamp_ = dtmf_event->timestamp;
} else {
assert(header);
if (!header) {
LOG(LS_ERROR) << "Packet missing where it shouldn't.";
return -1;