fix "Assertion 'thr != NULL' failed"
This commit is contained in:
@@ -303,13 +303,16 @@ RageSound_Generic_Software::RageSound_Generic_Software()
|
|||||||
|
|
||||||
RageSound_Generic_Software::~RageSound_Generic_Software()
|
RageSound_Generic_Software::~RageSound_Generic_Software()
|
||||||
{
|
{
|
||||||
/* Signal the mixing thread to quit. */
|
/* Signal the decoding thread to quit. */
|
||||||
|
if( m_DecodeThread.IsCreated() )
|
||||||
|
{
|
||||||
shutdown_decode_thread = true;
|
shutdown_decode_thread = true;
|
||||||
LOG->Trace("Shutting down decode thread ...");
|
LOG->Trace("Shutting down decode thread ...");
|
||||||
LOG->Flush();
|
LOG->Flush();
|
||||||
m_DecodeThread.Wait();
|
m_DecodeThread.Wait();
|
||||||
LOG->Trace("Decode thread shut down.");
|
LOG->Trace("Decode thread shut down.");
|
||||||
LOG->Flush();
|
LOG->Flush();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
Reference in New Issue
Block a user