Fix for crash when no audio engine available but audio asset arrived; patch by Ryo Pasternak (FIRE-4133)

Ansariel 2012-01-04 13:16:50 +01:00
parent 2ea68ba215
commit 606d3a566a
1 changed files with 5 additions and 0 deletions

View File

@ -1215,6 +1215,11 @@ void LLAudioEngine::startNextTransfer()
// static
void LLAudioEngine::assetCallback(LLVFS *vfs, const LLUUID &uuid, LLAssetType::EType type, void *user_data, S32 result_code, LLExtStat ext_status)
{
if (!gAudiop)
{
return;
}
if (result_code)
{
llinfos << "Boom, error in audio file transfer: " << LLAssetStorage::getErrorString( result_code ) << " (" << result_code << ")" << llendl;