Added variable to catch return value.
Review URL: http://webrtc-codereview.appspot.com/329004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@1218 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
parent
08dec7f449
commit
9775a30859
@ -220,9 +220,9 @@ WebRtc_UWord16 RTPFile::Read(WebRtcRTPHeader* rtpInfo,
|
||||
WebRtc_UWord16 lengthBytes;
|
||||
WebRtc_UWord16 plen;
|
||||
WebRtc_UWord8 rtpHeader[12];
|
||||
fread(&lengthBytes, 2, 1, _rtpFile);
|
||||
size_t read_len = fread(&lengthBytes, 2, 1, _rtpFile);
|
||||
/* Check if we have reached end of file. */
|
||||
if (feof(_rtpFile))
|
||||
if ((read_len == 0) && feof(_rtpFile))
|
||||
{
|
||||
_rtpEOF = true;
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user