stop on any error

This commit is contained in:
Glenn Maynard
2006-12-23 03:47:38 +00:00
parent f2eb0043de
commit 3faec793db
@@ -202,7 +202,7 @@ void RageSoundDriver::DecodeThread()
int iWrote = GetDataForSound( *pSound ); int iWrote = GetDataForSound( *pSound );
if( iWrote == RageSoundReader::WOULD_BLOCK ) if( iWrote == RageSoundReader::WOULD_BLOCK )
break; break;
if( iWrote == RageSoundReader::END_OF_FILE ) if( iWrote < 0 )
{ {
/* This sound is finishing. */ /* This sound is finishing. */
pSound->m_State = Sound::STOPPING; pSound->m_State = Sound::STOPPING;