Fix gcc warnings triggered by -Wextra.
TEST=build and audio_coding_unittests and audio_coding_module_test on Linux Review URL: https://webrtc-codereview.appspot.com/343010 git-svn-id: http://webrtc.googlecode.com/svn/trunk@1445 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
@ -198,14 +198,15 @@ bool Receiver::IncomingPacket() {
|
||||
_firstTime = false;
|
||||
_realPayloadSizeBytes = _rtpStream->Read(&_rtpInfo, _incomingPayload,
|
||||
_payloadSizeBytes, &_nextTime);
|
||||
if (_realPayloadSizeBytes < 0) {
|
||||
printf("Error in reading incoming payload.\n");
|
||||
return false;
|
||||
if (_realPayloadSizeBytes == 0) {
|
||||
if (_rtpStream->EndOfFile()) {
|
||||
_firstTime = true;
|
||||
return true;
|
||||
} else {
|
||||
printf("Error in reading incoming payload.\n");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
if (_realPayloadSizeBytes == 0 && _rtpStream->EndOfFile()) {
|
||||
_firstTime = true;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
WebRtc_Word32 ok = _acm->IncomingPacket(_incomingPayload,
|
||||
|
Reference in New Issue
Block a user