a more accurate streamfile error profiling

git-svn-id: https://vgmstream.svn.sourceforge.net/svnroot/vgmstream@546 51a99a44-fe44-0410-b1ba-c3e57ba2b86b
This commit is contained in:
halleyscometsw 2008-12-31 18:44:08 +00:00
parent a4904aa244
commit deee95ab68

View File

@ -97,7 +97,14 @@ static size_t read_stdio(STDIOSTREAMFILE *streamfile,uint8_t * dest, off_t offse
return length; return length;
} }
return read_the_rest(dest,offset,length,streamfile); {
size_t length_read = read_the_rest(dest,offset,length,streamfile);
#if PROFILE_STREAMFILE
if (length_read < length)
streamfile->error_count++;
#endif
return length_read;
}
} }
static void close_stdio(STDIOSTREAMFILE * streamfile) { static void close_stdio(STDIOSTREAMFILE * streamfile) {