forked from bartvdbraak/blender
Fix for blender crashing when starting playback with audio without being able to open the audio file.
This commit is contained in:
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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user