mirror of
https://github.com/vgmstream/vgmstream.git
synced 2025-01-18 07:44:43 +01:00
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:
parent
a4904aa244
commit
deee95ab68
@ -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) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user