stop on any error
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user