fix "Assertion 'thr != NULL' failed"

This commit is contained in:
Glenn Maynard
2004-04-03 01:23:07 +00:00
parent 1c73baed12
commit b6c090995d
@@ -303,13 +303,16 @@ RageSound_Generic_Software::RageSound_Generic_Software()
RageSound_Generic_Software::~RageSound_Generic_Software()
{
/* Signal the mixing thread to quit. */
shutdown_decode_thread = true;
LOG->Trace("Shutting down decode thread ...");
LOG->Flush();
m_DecodeThread.Wait();
LOG->Trace("Decode thread shut down.");
LOG->Flush();
/* Signal the decoding thread to quit. */
if( m_DecodeThread.IsCreated() )
{
shutdown_decode_thread = true;
LOG->Trace("Shutting down decode thread ...");
LOG->Flush();
m_DecodeThread.Wait();
LOG->Trace("Decode thread shut down.");
LOG->Flush();
}
}
/*