EOF is signalled by 0, not by a short block. (short blocks can be returned for any reason by a filter, most commonly due to changing ratios)

This commit is contained in:
Glenn Maynard
2006-11-29 07:59:17 +00:00
parent 58c0138e5e
commit e6d5cbbd77
+1 -1
View File
@@ -391,7 +391,7 @@ bool RunTests( RageSoundReader *snd, const TestFile &tf )
{
char buf[4096];
int got = snd->Read( buf, sizeof(buf) );
if( got < int(sizeof(buf)) )
if( got == 0 )
break;
}