Don't crash when chanelp returned is null

This commit is contained in:
Latif Khalifa
2013-09-17 01:48:11 +02:00
parent a2b2af6eb7
commit 97c8218463

View File

@@ -399,7 +399,7 @@ void LLAudioEngine::idle(F32 max_decode_time)
}
LLAudioChannel *channelp = sourcep->getChannel();
bool is_stopped = channelp && channelp->isPlaying();
bool is_stopped = !channelp || !channelp->isPlaying();
if (is_stopped || (sourcep->isLoop() && channelp->mLoopedThisFrame))
{
// This sound isn't playing, so we just process move the queue