From 606d3a566a2a38e171a6cd847bbb4c161d8223f8 Mon Sep 17 00:00:00 2001 From: Ansariel Date: Wed, 4 Jan 2012 13:16:50 +0100 Subject: [PATCH] Fix for crash when no audio engine available but audio asset arrived; patch by Ryo Pasternak (FIRE-4133) --- indra/llaudio/llaudioengine.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/indra/llaudio/llaudioengine.cpp b/indra/llaudio/llaudioengine.cpp index 5e540ad8c5..4aff513116 100644 --- a/indra/llaudio/llaudioengine.cpp +++ b/indra/llaudio/llaudioengine.cpp @@ -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;