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:
tina.legrand@webrtc.org 2011-12-16 11:15:46 +00:00
parent 08dec7f449
commit 9775a30859

View File

@ -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;