Fix for blender crashing when starting playback with audio without being able to open the audio file.

This commit is contained in:
Joerg Mueller 2010-12-27 11:32:43 +00:00
parent 2ff790d0bd
commit 9118614d8e

@ -188,7 +188,16 @@ void AUD_SequencerReader::read(int & length, sample_t* & buffer)
delete strip->reader;
if(strip->old_sound)
strip->reader = m_mixer->prepare(strip->old_sound->createReader());
{
try
{
strip->reader = m_mixer->prepare(strip->old_sound->createReader());
}
catch(AUD_Exception)
{
strip->reader = NULL;
}
}
else
strip->reader = NULL;
}