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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user